GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Copying graphics to a printer using call GSCOPY GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
|
This call copies the contents of the current page's picture space to the current alternate device if it is family-1 or -2. It does not copy alphanumerics or image data. It permits you to specify how large the copy should be. This is the format of the call:
CALL GSCOPY(60,120); /* Copy graphics to queued printer, using a */
/* printer page-size of 60 rows by 120 cols */
By default, the aspect ratio of the graphics is maintained. If you draw a
square picture on the primary device, for example, and then issue a CALL
GSCOPY(5,120), you do not get an elongated version of the picture
stretching right across the page. Instead, you get a square picture, 5
rows deep, centered on the boundary of columns 60 and 61. In some cases
it may be more important to fill the area specified in the GSCOPY than to
preserve the aspect ratio of the graphics. This call makes that happen:
CALL GSARCC(1); /* Do not preserve aspect ratio */
GSCOPY treats symbol sets in the same way as FSCOPY.
Graphics primitives outside segments are not copied. You can obtain multiple copies of the graphics on a page by issuing multiple GSCOPY calls. On a family-2 device you can, instead, use the number-of-copies parameter of the print control processing option. |
Copyright IBM Corporation 1990, 2012 |