Getting page and layer extents

 

It is sometimes useful to know the size of the image extents (or limits). You might want this information to figure out if an image should be cropped or resized, or whether its print will fit on one piece of paper at actual size.

Normally you will want the extents of the displayed objects only. To get that, follow this procedure.

To get the extents of the displayed portions of a page or layer:

· Use the IN_GetVisibleObjectMER function. Specify a page ID or a layer ID.

The top-left and bottom-right coordinates of the image extents are returned. Only displayed layers are considered.

However, if you want the extents of hidden layers, then follow this procedure.

To get the extents of an object, displayed or hidden:

· Use the IN_GetObjectMER function.

The top-left and bottom-right coordinates of the image extents are returned.

See also

Getting layer information

Getting page information

Displaying and hiding layers

Resizing and cropping rasters