13 references to SetRemapTable
System.Drawing.Common (5)
System\Drawing\Imaging\ImageAttributes.cs (5)
317/// <inheritdoc cref="SetRemapTable(ColorMap[], ColorAdjustType)"/> 318public void SetRemapTable(params ColorMap[] map) => SetRemapTable(map, ColorAdjustType.Default); 334/// <inheritdoc cref="SetRemapTable(ColorMap[], ColorAdjustType)"/> 337/// <inheritdoc cref="SetRemapTable(ColorMap[], ColorAdjustType)"/> 427public void SetBrushRemapTable(params ColorMap[] map) => SetRemapTable(map, ColorAdjustType.Brush);
System.Drawing.Common.Tests (8)
System\Drawing\Imaging\ImageAttributesTests.cs (8)
1188imageAttr.SetRemapTable(_yellowToRedColorMap, type); 1201imageAttr.SetRemapTable(_yellowToRedColorMap, type); 1214AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetRemapTable(_yellowToRedColorMap, ColorAdjustType.Default)); 1222AssertExtensions.ThrowsAny<ArgumentNullException, ArgumentException>(() => imageAttr.SetRemapTable(_yellowToRedColorMap, type)); 1229Assert.Throws<ArgumentNullException>(() => imageAttr.SetRemapTable(null, ColorAdjustType.Default)); 1236Assert.Throws<NullReferenceException>(() => imageAttr.SetRemapTable([null], ColorAdjustType.Default)); 1243AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetRemapTable([], ColorAdjustType.Default)); 1266imageAttr.SetRemapTable(_yellowToRedColorMap, type);