CropImage
The CropImage method crops a bitmap image to the specified limits
Syntax
boolean.CropImage( left, top, right, bottom)
Parameter | Type | Description |
left | Variant | optional, left most position of the cropping rectangle in page units. If empty, uses the image's original left limit |
top | Variant | optional, top most position of the cropping rectangle in page units. If empty, uses the image's original left limit |
right | Variant | optional, right most position of the cropping rectangle in page units. If empty, uses the image's original left limit |
bottom | Variant | optional, bottom most position of the cropping rectangle in page units. If empty, uses the image's original left limit |
Example 1
This example shows how to crop all four sides of an image
Set Bitmap1_obj = Plot1_doc.Shapes.Item(1)
Bitmap1_obj.CropImage(2.40123, 6.01414, 5.07418, 4.34669)
Example 2
This example shows how to crop only the bottom and right sides of an image
Set Bitmap1_obj = Plot1_doc.Shapes.Item(1)
Bitmap1_obj.CropImage(, , 5, 4)
Used by: AutoBitmap object