TBaseImage.ReplaceColor Method
TBaseImage Class

Replaces pixels with OldPixel in the given rectangle by NewPixel.

Class
Pascal
public procedure ReplaceColor(X: LongInt; 
                              Y: LongInt; 
                              Width: LongInt; 
                              Height: LongInt; 
                              OldColor: Pointer; 
                              NewColor: Pointer);
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 > Classes > TBaseImage Class > Methods > ReplaceColor Method