GdPicture.NET Reference Guide
FxColorDropout Method (GdPictureImaging)
Example 





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.
Dropout a color from the image.
Syntax
'Declaration
 
Public Function FxColorDropout( _
   ByVal ImageID As Integer, _
   ByVal Filter As ColorDropoutFilter _
) As GdPictureStatus
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
Color dropout.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.FxColorDropout(ImageID, ColorKeyDropoutFilter.RedForm )
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetROI Method
ResetROI Method