| Home
| Previous
| Next
| Up

MGL_setPenStyle

Sets the current pen style.

Declaration

void MGLAPI MGL_setPenStyle(
int style)

Prototype In

mgraph.h

Parameters

style | New pen style to use

Description

Returns the currently active pen style. Pen styles supported by the SciTech MGL are enumerated in MGL_penStyleType.

When filling in the MGL_BITMAP_TRANSPARENT mode, the foreground color is used to fill in all pixels in the bitmap pattern that are a 1. Where the pixels in the bitmap pattern are a 0, the original background color is retained. In the MGL_BITMAP_OPAQUE mode, the background color is used to fill in the pixels in the bitmap that are set to a 0. When filling in MGL_PIXMAP mode, the foreground and background color values are not used, and the pixel colors are obtained directly from the pixmap pattern colors.

See Also

MGL_getPenStyle, MGL_setPenBitmapPattern

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