GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / CropLeft Method
GdPicture image identifier.
Width, in pixel, to remove from the left of a GdPicture image.
Example





In This Topic
CropLeft Method (GdPictureImaging)
In This Topic
Crops the left of a GdPicture image.
Syntax
'Declaration
 
Public Function CropLeft( _
   ByVal ImageID As Integer, _
   ByVal Lines As Integer _
) As GdPictureStatus
public GdPictureStatus CropLeft( 
   int ImageID,
   int Lines
)
public function CropLeft( 
    ImageID: Integer;
    Lines: Integer
): GdPictureStatus; 
public function CropLeft( 
   ImageID : int,
   Lines : int
) : GdPictureStatus;
public: GdPictureStatus CropLeft( 
   int ImageID,
   int Lines
) 
public:
GdPictureStatus CropLeft( 
   int ImageID,
   int Lines
) 

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.
Example
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);
}
See Also