Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / CropRight Method
GdPicture image identifier.
Width, in pixel, to remove from the right of a GdPicture image.
Example





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

    Parameters

    ImageID
    GdPicture image identifier.
    Lines
    Width, in pixel, to remove from the right of a GdPicture image.

    Return Value

    A member of the GdPictureStatus enumeration.
    Example
    Cropping 10 lines from the right of the image.
    using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
    {
        int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg");
     
        // Crop 10 lines from the right of the image.
        gdpictureImaging.CropRight(imageID, 10);
     
        gdpictureImaging.SaveAsPNG(imageID, "output.png");
     
        gdpictureImaging.ReleaseGdPictureImage(imageID);
    }
    See Also