GdPicture.NET Reference Guide
RemoveGreenComponent Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : RemoveGreenComponent Method
GdPicture Image Identifier.
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 an image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.RemoveGreenComponent(ImageID)
   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