ImageGear Professional for Windows ActiveX
Crop Method

Description:

Crops an image to the image rectangle. Only pixels that fall on or inside the rectangle specified by Left, Top, Width, Height will be kept in the resulting image. The dimensions of the resulting image are then same as the rectangle. The removed parts of the image are discarded.

This method processes all image channels, including Alpha channel and Extra channels, if they exist.

Syntax:

      Crop (ByVal pPage As IGPage, ByVal Left As Long, ByVal Top As
Long, ByVal Width As Long, ByVal Height As Long)

Parameters:

Name Description
pPage Reference to IGPage Object to which crop is applied.
Left X coordinate of the crop rectangle.
Top Y coordinate of the crop rectangle.
Width The width of the crop rectangle.
Height The height of the crop rectangle.

Return Value:

N/A

Bits Per Pixel:

1, 4, 8, 9-16-bit gray level, 24, 32

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback