ReplaceColor Function
Imaging

Replaces pixels with OldPixel in the given rectangle by NewPixel.

Pascal
function ReplaceColor(var Image: TImageData; 
                      X: LongInt; 
                      Y: LongInt; 
                      Width: LongInt; 
                      Height: LongInt; 
                      OldColor: Pointer; 
                      NewColor: Pointer): Boolean;
File

Imaging (at line 224)

Description

OldPixel and NewPixel should point to the pixels in the same format as the given image is in.

Related Information
You are here: Symbol Reference > Functions > ReplaceColor Function