ImageEn, unit iexBitmaps

TIEBitmap.Crop

TIEBitmap.Crop


Declaration


procedure Crop(x1, y1, x2, y2 : Integer);
procedure Crop(Rect : TRect);


Description


Replace the current image with that within the specified rectangle (i.e. keep only the specified region).

Note: Negative or out-of-range values will enlarge the image


Examples


// Crop the image at position, Top-Left: (20, 20), Bottom-right: (100, 100). The resulting image will be 80 x 80 pixels
IEBmp.Crop( 20, 20, 100, 100 );


See Also


- Resize
- CropAlpha
- Crop
- Global Image Methods