Previous Page | Next Page

Graphics Options and Device Parameters Dictionary

XPIXELS



Specifies the width of the addressable display area in pixels and in conjunction with XMAX determines the horizontal resolution for the device.
Used in: GOPTIONS statement; GDEVICE procedure; GDEVICE Detail window
Default: device-dependent
See also: XMAX
Restriction: Partially supported by Java and ActiveX

Syntax
Details

Syntax

XPIXELS=width-in-pixels

width-in-pixels

is a positive integer up to eight digits long (0...99999999).


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.

Note:   This option overrides the OutputWidth style attribute in the graph styles. For more information on graph styles, refer to the TEMPLATE procedure documentation in SAS Output Delivery System: User's Guide.  [cautionend]

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:

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:

XPIXELS=1500 and XMAX=5
XPIXELS=1800 and XMAX=6

  [cautionend]

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.

Previous Page | Next Page | Top of Page