short Escape(hDC, SET_BOUNDS, sizeof(RECT),lpInData, NULL)
This escape sets the bounding rectangle for the picture being produced by the device driver supporting the given device context. It is used when creating images in a file format such as Encapsulated PostScript (EPS) and Hewlett-Packard Graphics Language (HPGL) for which there is a device driver.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | |
lpInData | LPRECT Points to a RECT data structure that specifies in device coordinates a rectangle that bounds the image to be output. |
The return value is TRUE if the escape was successful; otherwise, the return value is FALSE.
An application should issue this escape before each page in the image. For single-page images, this escape should be issued immediately before the STARTDOC escape.
When an application uses coordinate-transformation escapes, device drivers may not perform bounding box calculations correctly. When an application uses the SET_BOUNDS escape, the driver does not have to calculate the bounding box.
Applications should always use this escape to ensure support for the Encapsulated PostScript (EPS) printing capabilities that will be built into future PostScript drivers.