Next: Custom Operations for Win32 Graphics, Previous: Win32 Graphics, Up: Win32 Graphics
Win32 graphics devices are created by specifying the symbol win32
as the graphics-device-type argument to
make-graphics-device
. The Win32 graphics device type is
implemented as a top-level window and supports color drawing in addition
to the standard Scheme graphics operations.
Graphics devices are opened as follows:
(make-graphics-device 'win32 #!optional width height palette)
where width and height specify the size, in pixels, of the drawing area in the graphics window (i.e. excluding the frame). Palette determines the colors available for drawing in the window.
When a color is specified for drawing, the nearest color available in the palette is used. Permitted values for palette are
'grayscale
'grayscale-128
'standard
#f
or 'system
standard
palette is
used.