14 instantiations of ColorMatrix
System.Drawing.Common.Tests (11)
System\Drawing\Imaging\ColorMatrixTests.cs (7)
38
ColorMatrix cm =
new
();
109
Assert.Throws(expectedException, () => new
ColorMatrix
(newColorMatrix));
115
ColorMatrix cm =
new
(
155
ColorMatrix cm =
new
(
170
ColorMatrix cm =
new
(IndexedColorMatrix);
214
ColorMatrix cm =
new
()
273
ColorMatrix cm =
new
(IndexedColorMatrix);
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
243
using ColorMatrixEffect effect = new(new
ColorMatrix
(buffer));
System\Drawing\Imaging\ImageAttributesTests.cs (3)
38
private readonly ColorMatrix _greenComponentToZeroColorMatrix =
new
(
47
private readonly ColorMatrix _grayMatrix =
new
(
118
ColorMatrix colorMatrix =
new
(
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
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)
2428
public void SetColorMatrices(System.Drawing.Imaging.
ColorMatrix
newColorMatrix, System.Drawing.Imaging.
ColorMatrix
? grayMatrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2429
public 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); }
2430
public 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); }
2431
public void SetColorMatrix(System.Drawing.Imaging.
ColorMatrix
newColorMatrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2432
public void SetColorMatrix(System.Drawing.Imaging.
ColorMatrix
newColorMatrix, System.Drawing.Imaging.ColorMatrixFlag flags) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2433
public 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)
38
ColorMatrix
cm = new();
115
ColorMatrix
cm = new(
155
ColorMatrix
cm = new(
170
ColorMatrix
cm = new(IndexedColorMatrix);
214
ColorMatrix
cm = new()
273
ColorMatrix
cm = new(IndexedColorMatrix);
System\Drawing\Imaging\ImageAttributesTests.cs (3)
38
private readonly
ColorMatrix
_greenComponentToZeroColorMatrix = new(
47
private readonly
ColorMatrix
_grayMatrix = new(
118
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