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





In This Topic
RemoveRedComponent Method (GdPictureImaging)
In This Topic
Removes the red color component of a GdPicture image or of an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function RemoveRedComponent( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus RemoveRedComponent( 
   int ImageID
)
public function RemoveRedComponent( 
    ImageID: Integer
): GdPictureStatus; 
public function RemoveRedComponent( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus RemoveRedComponent( 
   int ImageID
) 
public:
GdPictureStatus RemoveRedComponent( 
   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 red component from a jpeg image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", false);
 
    // Remove the blue color component.
    gdpictureImaging.RemoveRedComponent(imageID);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg", 75);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also