RasterImageReplaceColor Method (Color, Byte, Color)
Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 20.06
Syntax
public void ReplaceColor(
	Color oldColor,
	byte oldColorDiff,
	Color newColor
)

Parameters

oldColor
Type: Aspose.ImagingColor
Old color to be replaced.
oldColorDiff
Type: SystemByte
Allowed difference in old color to be able to widen replaced color tone.
newColor
Type: Aspose.ImagingColor
New color to replace old color with.
See Also