GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / SwapColor Method / SwapColor(Int32,GdPictureColor,GdPictureColor) Method
GdPicture image identifier.
Color to replace. A suitable color value can be obtained by using the ARGB() method.
Color of replacement. A suitable color value can be obtained by using the ARGB() method.





In This Topic
SwapColor(Int32,GdPictureColor,GdPictureColor) Method
In This Topic
Replaces one color by another on a GdPicture image or into an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Overloads Function SwapColor( _
   ByVal ImageID As Integer, _
   ByVal ColorSrc As GdPictureColor, _
   ByVal ColorDst As GdPictureColor _
) As GdPictureStatus
public function SwapColor( 
    ImageID: Integer;
    ColorSrc: GdPictureColor;
    ColorDst: GdPictureColor
): GdPictureStatus; 
public function SwapColor( 
   ImageID : int,
   ColorSrc : GdPictureColor,
   ColorDst : GdPictureColor
) : GdPictureStatus;

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.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
See Also