| Home
| Previous
| Next
| Up

MGL_penStyleType

Declaration

typedef enum {
MGL_BITMAP_SOLID,
MGL_BITMAP_OPAQUE,
MGL_BITMAP_TRANSPARENT,
MGL_PIXMAP,
MGL_PIXMAP_TRANSPARENT
} MGL_penStyleType

Prototype In

mgraph.h

Description

Defines the pen styles passed to MGL_setPenStyle. These styles define the different fill styles that can be used when the filling the interior of filled primitives and also the outline of non-filled primitives.

Members

MGL_BITMAP_SOLID | Fill with a solid color
MGL_BITMAP_OPAQUE | Fill with an opaque bitmap pattern. Where bits in the pattern are a 1, the foreground color is used. Where bits in the pattern are a 0, the background color is used. The pattern itself is defined as an 8x8 monochrome bitmap.
MGL_BITMAP_TRANSPARENT | Fill with a transparent bitmap pattern. Where bits in the pattern are a 1, the foreground color is used. Where bits in the pattern are a 0, the pixel is left unmodified on the screen. The pattern itself is defined as an 8x8 monochrome bitmap.
MGL_PIXMAP | Fill with a color pixmap pattern. The pixmap pattern is defined as an 8x8 array of color_t values, where each entry corresponds to the color values packed for the appropriate color mode (ie: a color index in color index modes and a packed RGB value in HiColor and TrueColor modes).
MGL_PIXMAP_TRANSPARENT | Fill with a color pixmap pattern, but with one of the colors to be transparent. The transparent color is set with a call to MGL_setPenPixmapTransparent.

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com