5 instantiations of ColorMatrix
System.Drawing.Common.Tests (2)
System\Drawing\Imaging\ColorMatrixTests.cs (1)
38ColorMatrix cm = new();
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
243using ColorMatrixEffect effect = new(new ColorMatrix(buffer));
System.Windows.Forms (3)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1623ColorMatrix grayMatrix = new(array); 2309return new ColorMatrix(result); 2478ColorMatrix matrix = new ColorMatrix
53 references to ColorMatrix
System.Drawing (1)
System.Drawing.cs (1)
74[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.ColorMatrix))]
System.Drawing.Common (42)
System\Drawing\Imaging\ColorMatrix.cs (29)
41/// Initializes a new instance of the <see cref='ColorMatrix'/> class. 75/// Represents the element at the 0th row and 0th column of this <see cref='ColorMatrix'/>. 84/// Represents the element at the 0th row and 1st column of this <see cref='ColorMatrix'/>. 93/// Represents the element at the 0th row and 2nd column of this <see cref='ColorMatrix'/>. 102/// Represents the element at the 0th row and 3rd column of this <see cref='ColorMatrix'/>. 111/// Represents the element at the 0th row and 4th column of this <see cref='ColorMatrix'/>. 120/// Represents the element at the 1st row and 0th column of this <see cref='ColorMatrix'/>. 129/// Represents the element at the 1st row and 1st column of this <see cref='ColorMatrix'/>. 138/// Represents the element at the 1st row and 2nd column of this <see cref='ColorMatrix'/>. 147/// Represents the element at the 1st row and 3rd column of this <see cref='ColorMatrix'/>. 156/// Represents the element at the 1st row and 4th column of this <see cref='ColorMatrix'/>. 165/// Represents the element at the 2nd row and 0th column of this <see cref='ColorMatrix'/>. 174/// Represents the element at the 2nd row and 1st column of this <see cref='ColorMatrix'/>. 183/// Represents the element at the 2nd row and 2nd column of this <see cref='ColorMatrix'/>. 192/// Represents the element at the 2nd row and 3rd column of this <see cref='ColorMatrix'/>. 201/// Represents the element at the 2nd row and 4th column of this <see cref='ColorMatrix'/>. 210/// Represents the element at the 3rd row and 0th column of this <see cref='ColorMatrix'/>. 219/// Represents the element at the 3rd row and 1st column of this <see cref='ColorMatrix'/>. 228/// Represents the element at the 3rd row and 2nd column of this <see cref='ColorMatrix'/>. 237/// Represents the element at the 3rd row and 3rd column of this <see cref='ColorMatrix'/>. 246/// Represents the element at the 3rd row and 4th column of this <see cref='ColorMatrix'/>. 255/// Represents the element at the 4th row and 0th column of this <see cref='ColorMatrix'/>. 264/// Represents the element at the 4th row and 1st column of this <see cref='ColorMatrix'/>. 273/// Represents the element at the 4th row and 2nd column of this <see cref='ColorMatrix'/>. 282/// Represents the element at the 4th row and 3rd column of this <see cref='ColorMatrix'/>. 291/// Represents the element at the 4th row and 4th column of this <see cref='ColorMatrix'/>. 300/// Initializes a new instance of the <see cref='ColorMatrix'/> class with the elements in the specified matrix. 334/// Initializes a new instance of the <see cref='ColorMatrix'/> class with the elements in the specified matrix. 351/// Gets or sets the value of the specified element of this <see cref='ColorMatrix'/>.
System\Drawing\Imaging\Effects\ColorMatrixEffect.cs (4)
19private readonly ColorMatrix _matrix; 25public ColorMatrixEffect(ColorMatrix matrix) : base(PInvoke.ColorMatrixEffectGuid) 41/// <see cref="ColorMatrix"/> is mutable, but effects do not support changing the matrix after creation. 44public ColorMatrix Matrix => _matrix;
System\Drawing\Imaging\ImageAttributes.cs (9)
101public void SetColorMatrix(ColorMatrix newColorMatrix) => 107public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags) => 113public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) => 140public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix? grayMatrix) => 143public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix? grayMatrix, ColorMatrixFlag flags) => 147ColorMatrix newColorMatrix, 148ColorMatrix? grayMatrix,
System.Drawing.Common.Tests (4)
System\Drawing\Imaging\ColorMatrixTests.cs (1)
38ColorMatrix cm = new();
System\Drawing\Imaging\ImageAttributesTests.cs (3)
37private readonly ColorMatrix _greenComponentToZeroColorMatrix = new( 46private readonly ColorMatrix _grayMatrix = new( 117ColorMatrix 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