Currentgray – AMT Datasouth PAL User Manual
Page 78

currentgray
72
currentgray
Description
Returns the current color setting mapped to the DeviceGray color space.
Usage
currentgray
LevelFxpt
LevelFxp
Fixed-Point. Current color setting mapped to the DeviceGray color space. The
value ranges from 0.0 (black) to 1.0 (white).
Comments
PAL currently only supports the DeviceGray color space. This operator will return the last gray
level established using the setgray operator.
Different printer models may have different interpretations for the gray level requested via the
setgray operator. PAL printer models which support only black and white printing will always
translate gray level requests into either black or white.
The currentgray operator always returns the color requested via the setgray operator and not the
color which the printer may actually be printing. Therefore, when the user requests 20% gray level
by specifying “0.2 setgray” on a printer which supports only black and white, the printer will
probably round the 20% gray level request down to 0% gray level (black). However, the
currentgray operator will still return 0.2 (20%) since that was the gray level requested via the
setgray operator.
PAL printers default at power-on to 0% gray level (black).