5 instantiations of ColorMatrix
System.Drawing.Common.Tests (2)
System\Drawing\Imaging\ColorMatrixTests.cs (1)
38
ColorMatrix cm =
new
();
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
243
using ColorMatrixEffect effect = new(new
ColorMatrix
(buffer));
System.Windows.Forms (3)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1623
ColorMatrix grayMatrix =
new
(array);
2309
return new
ColorMatrix
(result);
2478
ColorMatrix 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)
19
private readonly
ColorMatrix
_matrix;
25
public ColorMatrixEffect(
ColorMatrix
matrix) : base(PInvoke.ColorMatrixEffectGuid)
41
/// <see cref="
ColorMatrix
"/> is mutable, but effects do not support changing the matrix after creation.
44
public
ColorMatrix
Matrix => _matrix;
System\Drawing\Imaging\ImageAttributes.cs (9)
101
public void SetColorMatrix(
ColorMatrix
newColorMatrix) =>
107
public void SetColorMatrix(
ColorMatrix
newColorMatrix, ColorMatrixFlag flags) =>
113
public void SetColorMatrix(
ColorMatrix
newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type) =>
140
public void SetColorMatrices(
ColorMatrix
newColorMatrix,
ColorMatrix
? grayMatrix) =>
143
public void SetColorMatrices(
ColorMatrix
newColorMatrix,
ColorMatrix
? grayMatrix, ColorMatrixFlag flags) =>
147
ColorMatrix
newColorMatrix,
148
ColorMatrix
? grayMatrix,
System.Drawing.Common.Tests (4)
System\Drawing\Imaging\ColorMatrixTests.cs (1)
38
ColorMatrix
cm = new();
System\Drawing\Imaging\ImageAttributesTests.cs (3)
37
private readonly
ColorMatrix
_greenComponentToZeroColorMatrix = new(
46
private readonly
ColorMatrix
_grayMatrix = new(
117
ColorMatrix
colorMatrix = new(
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
36
private static
ColorMatrix
? s_disabledImageColorMatrix;
75
private static
ColorMatrix
DisabledImageColorMatrix
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1623
ColorMatrix
grayMatrix = new(array);
2277
internal static
ColorMatrix
MultiplyColorMatrix(float[][] matrix1, float[][] matrix2)
2445
private static
ColorMatrix
RemapBlackAndWhitePreserveTransparentMatrix(Color replaceBlack, Color replaceWhite)
2478
ColorMatrix
matrix = new ColorMatrix