Gets the extent of the object from the graphics page at the specified AN. The extent represents the page co-ordinates at which the object was originally inserted.
Note: If the object has movement configured, use the DspGetAnExtent function to get the extent of the object.
Syntax
DspGetAnRawExtent(nAN, Top, Left, Bottom, Right)
nAN:
The AN at which the object is positioned.
Top:
A buffer that contains the top-most extent of the object.
Left:
A buffer that contains the left-most extent of the object.
Bottom:
A buffer that contains the bottom-most extent of the object.
Right:
A buffer that contains the right-most extent of the object.
Return Value
0 (zero) if successful, otherwise an error is returned. The Top, Left, Bottom, and Right arguments contain the extents of the object, in pixels.
Related Functions
DspGetAnExtent, DspGetAnWidth, DspGetAnHeight, DspGetAnLeft, DspGetAnRight, DspGetAnBottom, DspGetAnTop, PageTransformCoords
Example
// Get extents at AN 25.
DspGetAnRawExtent(25, Top, Left, Bottom, Right);
See Also
Published June 2018