GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / FxColorDropout Method
GdPicture image identifier.
A member of the ColorDropoutFilter enumeration defining the color to remove and the way to remove it.
Example





In This Topic
FxColorDropout Method (GdPictureImaging)
In This Topic
Dropout a color from the image.
Syntax
'Declaration
 
Public Function FxColorDropout( _
   ByVal ImageID As Integer, _
   ByVal Filter As ColorDropoutFilter _
) As GdPictureStatus
public GdPictureStatus FxColorDropout( 
   int ImageID,
   ColorDropoutFilter Filter
)
public function FxColorDropout( 
    ImageID: Integer;
    Filter: ColorDropoutFilter
): GdPictureStatus; 
public function FxColorDropout( 
   ImageID : int,
   Filter : ColorDropoutFilter
) : GdPictureStatus;
public: GdPictureStatus FxColorDropout( 
   int ImageID,
   ColorDropoutFilter Filter
) 
public:
GdPictureStatus FxColorDropout( 
   int ImageID,
   ColorDropoutFilter Filter
) 

Parameters

ImageID
GdPicture image identifier.
Filter
A member of the ColorDropoutFilter enumeration defining the color to remove and the way to remove it.

Return Value

A member of the GdPictureStatus enumeration.
Example
Removing form from a jpeg image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", true);
 
    // Dropout the red pixels from the scan of a red form (pixels are set to white).
    gdpictureImaging.FxColorDropout(imageID, ColorDropoutFilter.RedForm);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg", 75);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also