GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / SetColorKey Method
GdPicture image identifier.
Specifies the low color-key value. A suitable color value can be obtained by using the ARGB() method.
Specifies the high color-key value. A suitable color value can be obtained by using the ARGB() method.





In This Topic
SetColorKey Method
In This Topic
Sets the color key (transparency range) for a specified category on a GdPicture image. This method sets the high and low color-key values so that a range of colors can be made transparent. Any color that has each of its three components (red, green, blue) between the corresponding components of the high and low color keys is made transparent.
Syntax
'Declaration
 
Public Function SetColorKey( _
   ByVal ImageID As Integer, _
   ByVal ColorLow As Color, _
   ByVal ColorHigh As Color _
) As GdPictureStatus
public GdPictureStatus SetColorKey( 
   int ImageID,
   Color ColorLow,
   Color ColorHigh
)
public function SetColorKey( 
    ImageID: Integer;
    ColorLow: Color;
    ColorHigh: Color
): GdPictureStatus; 
public function SetColorKey( 
   ImageID : int,
   ColorLow : Color,
   ColorHigh : Color
) : GdPictureStatus;
public: GdPictureStatus SetColorKey( 
   int ImageID,
   Color ColorLow,
   Color ColorHigh
) 
public:
GdPictureStatus SetColorKey( 
   int ImageID,
   Color ColorLow,
   Color ColorHigh
) 

Parameters

ImageID
GdPicture image identifier.
ColorLow
Specifies the low color-key value. A suitable color value can be obtained by using the ARGB() method.
ColorHigh
Specifies the high color-key value. A suitable color value can be obtained by using the ARGB() method.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

See Also