GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / SetTransparencyColor Method / SetTransparencyColor(Int32,GdPictureColor,Single) Method
GdPicture image identifier.
Color to set as transparent. A suitable color value can be obtained by using the ARGB() method.
Percentage threshold between 0 and 100.





In This Topic
SetTransparencyColor(Int32,GdPictureColor,Single) Method
In This Topic
Sets a color as transparent in a GdPicture image or in area of a GdPicture image defined by SetROI() method. This method takes a percentage threshold parameter regarding the color to set as transparent. Ie: A threshold value of 90 means that all the color value which are within 90% of the color value parameter will be considered.
Syntax
'Declaration
 
Public Overloads Function SetTransparencyColor( _
   ByVal ImageID As Integer, _
   ByVal TransparentColor As GdPictureColor, _
   ByVal Threshold As Single _
) As GdPictureStatus
public GdPictureStatus SetTransparencyColor( 
   int ImageID,
   GdPictureColor TransparentColor,
   float Threshold
)
public function SetTransparencyColor( 
    ImageID: Integer;
    TransparentColor: GdPictureColor;
    Threshold: Single
): GdPictureStatus; 
public function SetTransparencyColor( 
   ImageID : int,
   TransparentColor : GdPictureColor,
   Threshold : float
) : GdPictureStatus;
public: GdPictureStatus SetTransparencyColor( 
   int ImageID,
   GdPictureColor TransparentColor,
   float Threshold
) 
public:
GdPictureStatus SetTransparencyColor( 
   int ImageID,
   GdPictureColor TransparentColor,
   float Threshold
) 

Parameters

ImageID
GdPicture image identifier.
TransparentColor
Color to set as transparent. 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.
See Also