Chapter Contents |
Previous |
Next |
XPIXELS |
Used in: | GOPTIONS statement; GDEVICE procedure; GDEVICE Detail window |
Default: | device dependent |
See also: | XMAX |
Restriction: | Ignored by default display drivers and host printing drivers. |
Syntax | |
Details |
Syntax |
XPIXELS=width-in-pixels |
Details |
Like the XMAX device parameter, XPIXELS controls the width of the display area, but the width is in pixels rather than inches, centimeters, or points. Typically, you might use XPIXELS to change the width of the display area for an image format device.
The value of XPIXELS is used in calculating the resolution of the device:
x-resolution = XPIXELS / XMAX |
However, changing XPIXELS does not necessarily change the device resolution:
HSIZE = XMAX - margins |
Note: Margins are not device parameters,
but represent the value of HORIGIN (the left margin) plus the right margin.
The right margin is whatever is left over when you subtract HSIZE and HORIGIN
from XMAX. The values of margins is always based on the original
XMAX and HSIZE values that are stored in the device entry.
If HSIZE= is specified and its value is larger than XMAX, HSIZE= is ignored.
Note: When SAS/GRAPH recalculates
the resolution, the resolution does not necessarily change. For example, both
of these pairs of values produce the same resolution, 300dpi:
Syntax |
XPIXELS=1500 and XMAX=5 |
XPIXELS=1800 and XMAX=6 |
To reset the value of XPIXELS to the default, specify XPIXELS=0. To return to the default resolution for the device, specify both XPIXELS=0 and XMAX=0.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.