scale

Generic Function

Package: common-graphics

Arguments: printer

Takes a printer stream and returns a number indicating the scaling factor that the end user has selected on the print job dialog that was invoked when the printer stream was opened. This number indicates the scaling that the printer driver itself will perform, and so the application does not need to do the scaling itself. This scaling factor is independent of scaling that can be achieved in common graphics by call (setf stream-units-per-inch) on the printer stream.

If the print job dialog for the particular printer does not support scaling, the return value may be 0 but this has not been tested with many printers.

scale is a property of the printer class.

This function is not setf'able. You must specify a value for this property when a printer stream is created with open-stream using the :scale initarg, but some printers may ignore this value.

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.