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





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