InterViews Reference Manual -- Pattern
NAME
Pattern - fill patterns for a painter
SYNOPSIS
#include <InterViews/pattern.h>
DESCRIPTION
A pattern defines how to fill areas during graphics operations. The global
variables ``solid'' and ``clear'' point to patterns for filling all or none of
the pixels in a particular area; ``lightgray'', ``gray'', and ``darkgray''
point to patterns for filling one-eighth, one-half, or seven-eighths of the
pixels in an area respectively.
PUBLIC OPERATIONS
Pattern(int b[patternHeight])
Construct a pattern from the array b. For each element of b,
the least significant patternWidth bits are used. If a bit is one,
then the foreground color will be used when filling. Otherwise, the background
color will be used. The first pattern element defines the topmost row of
pixels, and the least significant bit of each element defines the rightmost
column.
Pattern(int i)
Construct a pattern by interpreting the least signficant 16 bits of i
as a 4x4 bitmap and replicating it to make a full patternWidth by
patternHeight array.
Pattern(Bitmap*)
Construct a pattern from the bitmap. If necessary, the bitmap will be tiled or
truncated to satisfy window system requirements for fill pattern sizes.
SEE ALSO
Painter
Next: Persistent
| Prev: Panner
| Up: index
| Top: index