SWAP

Specifies whether to reverse BLACK and WHITE in the graphics output.
Used by: GOPTIONS statement, GDEVICE procedure, GDEVICE Parameters window
Default: GOPTIONS: NOSWAP

GDEVICE: SWAP=N

Restriction: not supported by Java or ActiveX

Syntax

GOPTIONS: SWAP | NOSWAP
GDEVICE: SWAP=Y | N

Parameter Values

SWAP
SWAP=Y
swaps BLACK for WHITE and vice versa.
NOSWAP
SWAP=N
does not swap the colors. A blank Swap field in the Parameters window is the same as SWAP=N.

Details

SWAP does not affect the background color and only affects BLACK and WHITE foreground colors specified as predefined SAS color names. SWAP ignores BLACK and WHITE specified in HLS, RGB, or gray-scale format. This option is useful when you want to preview a graph on a video device and send the final copy to a printer that uses a white background.
goptions reset=all cback=blue ctitle=black swap;
title1 h=8 'swap test';
title2 h=8 'another title';
proc gslide border;
run;