CropLeft Method (GdPictureImaging)
'Declaration
Public Function CropLeft( _
ByVal As Integer, _
ByVal As Integer _
) As GdPictureStatus
Parameters
- ImageID
- GdPicture image identifier.
- Lines
- Width, in pixel, to remove from the left of a GdPicture image.
Return Value
A member of the GdPictureStatus enumeration.
Cropping 10 lines from the left of the image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg");
// Crop 10 lines from the left of the image.
gdpictureImaging.CropLeft(imageID, 10);
gdpictureImaging.SaveAsPNG(imageID, "output.png");
gdpictureImaging.ReleaseGdPictureImage(imageID);
}