6.19 printer-dc%
Implements: dc<%>
A printer-dc% object is a Windows or Mac OS X printer
device context. The class cannot be instantiated under X (an
exn:misc:unsupported exception is raised).
Under Mac OS X, a newly created printer-dc% object
obtains orientation (portrait versus landspace) and
scaling information from the current ps-setup% object, as
determined by the
current-ps-setup parameter. This information can be configured by the user through a
dialog shown by
get-page-setup-from-user.
Be sure to use the following methods to start/end drawing:
Attempts to use a drawing method outside of an active page raises an exception.
See also post-script-dc%.
When a printer-dc% object is created, the user gets
platform-specific modal dialogs for configuring the output.
If the user cancels the dialog, the ok? method
of the object returns #f.
(->newprinter-dc% [(parent_)])printer-dc%object
parent=#f:frame%ordialog%object or#fIf
parentis not#f, it is used as the parent window of the configuration dialog.
All Methods
clear from dc<%>
draw-arc from dc<%>
draw-bitmap from dc<%>
draw-bitmap-section from dc<%>
draw-ellipse from dc<%>
draw-line from dc<%>
draw-lines from dc<%>
draw-path from dc<%>
draw-point from dc<%>
draw-polygon from dc<%>
draw-rectangle from dc<%>
draw-rounded-rectangle from dc<%>
draw-spline from dc<%>
draw-text from dc<%>
end-doc from dc<%>
end-page from dc<%>
get-background from dc<%>
get-brush from dc<%>
get-char-height from dc<%>
get-char-width from dc<%>
get-clipping-region from dc<%>
get-font from dc<%>
get-gl-context from dc<%>
get-origin from dc<%>
get-pen from dc<%>
get-scale from dc<%>
get-size from dc<%>
get-smoothing from dc<%>
get-text-background from dc<%>
get-text-extent from dc<%>
get-text-foreground from dc<%>
get-text-mode from dc<%>
glyph-exists? from dc<%>
ok? from dc<%>
set-background from dc<%>
set-brush from dc<%>
set-clipping-rect from dc<%>
set-clipping-region from dc<%>
set-font from dc<%>
set-origin from dc<%>
set-pen from dc<%>
set-scale from dc<%>
set-smoothing from dc<%>
set-text-background from dc<%>
set-text-foreground from dc<%>
set-text-mode from dc<%>
start-doc from dc<%>
start-page from dc<%>
try-color from dc<%>