ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > Crop Method |
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.
Crop (ByVal pPage As IGPage, ByVal Left As Long, ByVal Top As
Long, ByVal Width As Long, ByVal Height As Long)
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. |
N/A
1, 4, 8, 9-16-bit gray level, 24, 32
Image Processing and Effects