9 references to SetGamma
System.Drawing.Common (1)
System\Drawing\Imaging\ImageAttributes.cs (1)
204
public void SetGamma(float gamma) =>
SetGamma
(gamma, ColorAdjustType.Default);
System.Drawing.Common.Tests (8)
System\Drawing\Imaging\ImageAttributesTests.cs (8)
598
imageAttr.
SetGamma
(2.2f, type);
611
imageAttr.
SetGamma
(2.2f, type);
624
AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.
SetGamma
(2.2f, ColorAdjustType.Default));
632
AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.
SetGamma
(2.2f, type));
642
imageAttr.
SetGamma
(2.2f, type);
688
imageAttr.
SetGamma
(2.2f, type);
738
imageAttr.
SetGamma
(2.2f, type);
755
imageAttr.
SetGamma
(2.2f, type);