GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / RemoveGreenComponent Method
GdPicture image identifier.
Example





In This Topic
RemoveGreenComponent Method (GdPictureImaging)
In This Topic
Removes the green color component of a GdPicture image or of an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function RemoveGreenComponent( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus RemoveGreenComponent( 
   int ImageID
)
public function RemoveGreenComponent( 
    ImageID: Integer
): GdPictureStatus; 
public function RemoveGreenComponent( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus RemoveGreenComponent( 
   int ImageID
) 
public:
GdPictureStatus RemoveGreenComponent( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Removing the green component from a jpeg image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", false);
 
    // Remove the blue color component.
    gdpictureImaging.RemoveGreenComponent(imageID);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg", 75);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also