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

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

Parameters

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