GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / fxRemoveBackgroundChromaKey Method
GdPicture image identifier.
A member of the ColorKey enumeration defining the color to remove (can be Red, Blue or Green).
Variation between 0 and 512. 0 means no possible variation of the color key. Suggest value is 240, higher can result with non removed background space.
Specifies the minimum value of the component. Must be a value between 0 and 255. Default value is 25 for dark background, 50 for standard background and 80 for background with high luminosity.





In This Topic
fxRemoveBackgroundChromaKey Method (GdPictureImaging)
In This Topic
Sets the Red, Green or Blue background color as transparent in a GdPicture image or in area of a GdPicture image defined by SetROI() method. This method is particularly accurate to remove the Green, Blue or Red background of a photo.
Syntax
'Declaration
 
Public Function fxRemoveBackgroundChromaKey( _
   ByVal ImageID As Integer, _
   ByVal Component As ColorKey, _
   ByVal Variation As Integer, _
   ByVal MinKeyValue As Integer _
) As GdPictureStatus
public GdPictureStatus fxRemoveBackgroundChromaKey( 
   int ImageID,
   ColorKey Component,
   int Variation,
   int MinKeyValue
)
public function fxRemoveBackgroundChromaKey( 
    ImageID: Integer;
    Component: ColorKey;
    Variation: Integer;
    MinKeyValue: Integer
): GdPictureStatus; 
public function fxRemoveBackgroundChromaKey( 
   ImageID : int,
   Component : ColorKey,
   Variation : int,
   MinKeyValue : int
) : GdPictureStatus;
public: GdPictureStatus fxRemoveBackgroundChromaKey( 
   int ImageID,
   ColorKey Component,
   int Variation,
   int MinKeyValue
) 
public:
GdPictureStatus fxRemoveBackgroundChromaKey( 
   int ImageID,
   ColorKey Component,
   int Variation,
   int MinKeyValue
) 

Parameters

ImageID
GdPicture image identifier.
Component
A member of the ColorKey enumeration defining the color to remove (can be Red, Blue or Green).
Variation
Variation between 0 and 512. 0 means no possible variation of the color key. Suggest value is 240, higher can result with non removed background space.
MinKeyValue
Specifies the minimum value of the component. Must be a value between 0 and 255. Default value is 25 for dark background, 50 for standard background and 80 for background with high luminosity.

Return Value

A member of the GdPictureStatus enumeration.
See Also