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