'Declaration
Public Overloads Function SwapColor( _ ByVal ImageID As Integer, _ ByVal ColorSrc As Integer, _ ByVal ColorDst As Integer, _ ByVal Threshold As Single _ ) As GdPictureStatus
public GdPictureStatus SwapColor( int ImageID, int ColorSrc, int ColorDst, float Threshold )
public function SwapColor( ImageID: Integer; ColorSrc: Integer; ColorDst: Integer; Threshold: Single ): GdPictureStatus;
public function SwapColor( ImageID : int, ColorSrc : int, ColorDst : int, Threshold : float ) : GdPictureStatus;
public: GdPictureStatus SwapColor( int ImageID, int ColorSrc, int ColorDst, float Threshold )
public: GdPictureStatus SwapColor( int ImageID, int ColorSrc, int ColorDst, float Threshold )
Parameters
- ImageID
- GdPicture image identifier.
- ColorSrc
- A suitable color value can be obtained by using the ARGBI() method. Color to replace.
- ColorDst
- A suitable color value can be obtained by using the ARGBI() method. Color of replacement.
- Threshold
- Percentage threshold between 0 and 100.
Return Value
A member of the GdPictureStatus enumeration.