RasterImageReplaceColor Method (Int32, Byte, Int32) |
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 virtual void ReplaceColor(
int oldColorArgb,
byte oldColorDiff,
int newColorArgb
)
Public Overridable Sub ReplaceColor (
oldColorArgb As Integer,
oldColorDiff As Byte,
newColorArgb As Integer
)
public:
virtual void ReplaceColor(
int oldColorArgb,
unsigned char oldColorDiff,
int newColorArgb
)
abstract ReplaceColor :
oldColorArgb : int *
oldColorDiff : byte *
newColorArgb : int -> unit
override ReplaceColor :
oldColorArgb : int *
oldColorDiff : byte *
newColorArgb : int -> unit
Parameters
- oldColorArgb
- Type: SystemInt32
Old color ARGB value to be replaced. - oldColorDiff
- Type: SystemByte
Allowed difference in old color to be able to widen replaced color tone. - newColorArgb
- Type: SystemInt32
New color ARGB value to replace old color with.
See Also