GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / SetTransparencyColor Method / SetTransparencyColor(Int32,Color,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,Color,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 Color, _
   ByVal Threshold As Single _
) As GdPictureStatus
public GdPictureStatus SetTransparencyColor( 
   int ImageID,
   Color TransparentColor,
   float Threshold
)
public function SetTransparencyColor( 
    ImageID: Integer;
    TransparentColor: Color;
    Threshold: Single
): GdPictureStatus; 
public function SetTransparencyColor( 
   ImageID : int,
   TransparentColor : Color,
   Threshold : float
) : GdPictureStatus;
public: GdPictureStatus SetTransparencyColor( 
   int ImageID,
   Color TransparentColor,
   float Threshold
) 
public:
GdPictureStatus SetTransparencyColor( 
   int ImageID,
   Color 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