RasterImageReplaceColor Method (Color, Byte, Color) |
Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.
Namespace: Aspose.ImagingAssembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 22.05
Syntaxpublic void ReplaceColor(
Color oldColor,
byte oldColorDiff,
Color newColor
)
Public Sub ReplaceColor (
oldColor As Color,
oldColorDiff As Byte,
newColor As Color
)
public:
void ReplaceColor(
Color oldColor,
unsigned char oldColorDiff,
Color newColor
)
member ReplaceColor :
oldColor : Color *
oldColorDiff : byte *
newColor : Color -> unit
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