GdPicture image identifier.
Height, in pixel, to remove from the bottom of a GdPicture image.
Example





In This Topic

CropBottom Method (GdPictureImaging)

In This Topic
Crops the bottom of a GdPicture image.
Syntax
'Declaration

 

Public Function CropBottom( _

   ByVal ImageID As Integer, _

   ByVal Lines As Integer _

) As GdPictureStatus
public GdPictureStatus CropBottom( 

   int ImageID,

   int Lines

)
public function CropBottom( 

    ImageID: Integer;

    Lines: Integer

): GdPictureStatus; 
public function CropBottom( 

   ImageID : int,

   Lines : int

) : GdPictureStatus;
public: GdPictureStatus CropBottom( 

   int ImageID,

   int Lines

) 
public:

GdPictureStatus CropBottom( 

   int ImageID,

   int Lines

) 

Parameters

ImageID
GdPicture image identifier.
Lines
Height, in pixel, to remove from the bottom of a GdPicture image.

Return Value

A member of the GdPictureStatus enumeration.
Example
Cropping 10 lines from the bottom of the image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())

{

    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg");

 

    // Crop 10 lines from the bottom of the image.

    gdpictureImaging.CropBottom(imageID, 10);

 

    gdpictureImaging.SaveAsPNG(imageID, "output.png");

 

    gdpictureImaging.ReleaseGdPictureImage(imageID);

}
See Also