14 instantiations of ColorMatrix
System.Drawing.Common.Tests (11)
System\Drawing\Imaging\ColorMatrixTests.cs (7)
38ColorMatrix cm = new(); 109Assert.Throws(expectedException, () => new ColorMatrix(newColorMatrix)); 115ColorMatrix cm = new( 155ColorMatrix cm = new( 170ColorMatrix cm = new(IndexedColorMatrix); 214ColorMatrix cm = new() 273ColorMatrix cm = new(IndexedColorMatrix);
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
243using ColorMatrixEffect effect = new(new ColorMatrix(buffer));
System\Drawing\Imaging\ImageAttributesTests.cs (3)
38private readonly ColorMatrix _greenComponentToZeroColorMatrix = new( 47private readonly ColorMatrix _grayMatrix = new( 118ColorMatrix colorMatrix = new(
System.Windows.Forms (3)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1623ColorMatrix grayMatrix = new(array); 2309return new ColorMatrix(result); 2478ColorMatrix matrix = new ColorMatrix
25 references to ColorMatrix
System.Drawing (1)
System.Drawing.cs (1)
74[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.ColorMatrix))]
System.Drawing.Common (9)
Special\NotSupported.cs (9)
2428public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix? grayMatrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2429public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix? grayMatrix, System.Drawing.Imaging.ColorMatrixFlag flags) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2430public void SetColorMatrices(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrix? grayMatrix, System.Drawing.Imaging.ColorMatrixFlag mode, System.Drawing.Imaging.ColorAdjustType type) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2431public void SetColorMatrix(System.Drawing.Imaging.ColorMatrix newColorMatrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2432public void SetColorMatrix(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrixFlag flags) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2433public void SetColorMatrix(System.Drawing.Imaging.ColorMatrix newColorMatrix, System.Drawing.Imaging.ColorMatrixFlag mode, System.Drawing.Imaging.ColorAdjustType type) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (9)
System\Drawing\Imaging\ColorMatrixTests.cs (6)
38ColorMatrix cm = new(); 115ColorMatrix cm = new( 155ColorMatrix cm = new( 170ColorMatrix cm = new(IndexedColorMatrix); 214ColorMatrix cm = new() 273ColorMatrix cm = new(IndexedColorMatrix);
System\Drawing\Imaging\ImageAttributesTests.cs (3)
38private readonly ColorMatrix _greenComponentToZeroColorMatrix = new( 47private readonly ColorMatrix _grayMatrix = new( 118ColorMatrix colorMatrix = new(
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
36private static ColorMatrix? s_disabledImageColorMatrix; 75private static ColorMatrix DisabledImageColorMatrix
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1623ColorMatrix grayMatrix = new(array); 2277internal static ColorMatrix MultiplyColorMatrix(float[][] matrix1, float[][] matrix2) 2445private static ColorMatrix RemapBlackAndWhitePreserveTransparentMatrix(Color replaceBlack, Color replaceWhite) 2478ColorMatrix matrix = new ColorMatrix