A raster image may have too much white space around it, or the image area may be too large. You can crop or resize a raster to fix these problems.
To crop a raster layer:
· Use the CropLayer(docwinID, 0, 0, predefinedSize, 0, x1, y1, x2, y2) transaction.
You can specify the x, y coordinates as the diagonal corners of the crop area, or have Imagenation automatically remove the white space around the image, or remove (or add) white space to make the image a standard size. The last two options work only with bilevel rasters.
To change the size of a raster image:
· Use the ResizePage(docwinID, scale, aspect) transaction. You specify the scale multiplier, and define whether or not to preserve aspect ratio.
The raster image is resized.
Note that you can also resize an image as you rasterize it by using the Rasterize transaction.
Back to: Overview: Improving raster images