ReplaceColor

GifFrameBlock.ReplaceColor method

Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges.

public override void ReplaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)
Parameter Type Description
oldColorArgb Int32 Old color ARGB value to be replaced.
oldColorDiff Byte Allowed difference in old color to be able to widen replaced color tone.
newColorArgb Int32 New color ARGB value to replace old color with.

See Also