Supported Browsers Home   
MGL_getPenSize Previous   
MGL_getPixel Next   
External Functions Up   

MGL_getPenStyle

Returns the current pen style.

Declaration

int MGLAPI MGL_getPenStyle(void)

Prototype In

mgraph.h

Return Value

Current pen style.

Description

This function 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_setPenStyle, MGL_setPenBitmapPattern, MGL_setPenPixmapPattern

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