SET_BOUNDS

  #define SET_BOUNDS 4109    

  short Control(lpDevice, SET_BOUNDS, lpBounds, NULL)    
  LPPDEVICE lpDevice;    
  LPRECT lpBounds;    

The SET_BOUNDS escape sets the bounding rectangle for the image being output by the device driver when creating images in a file format such as Encapsulated PostScript (EPS) and Hewlett-Packard Graphics Language (HPGL).

Parameters

lpDevice

Points to a PDEVICE structure specifying the destination device.

lpBounds

Points to a RECT structure that specifies the bounds, in device coordinates, of the image to output.

Return Value

The return value is TRUE if successful. Otherwise, it is FALSE.

Comments

The application should issue this escape before each page. For single-page jobs, this escape should be issued immediately after the STARTDOC escape.

When using coordinate transformation escapes, device drivers may not perform bounding-box calculations correctly. Using this escape saves the driver from the task of calculating the bounding box.

See Also

STARTDOC