Region management

The following functions provide support for managing complex regions, and generating new complex region primitives. Complex regions are used to represent 2D arbitrarily complex regions as unions of smaller rectangles, and can represent shapes with complex outlines, holes in the middle and even totally disjoint areas. These routines allow you to create, copy, free and draw such regions, as well as generate regions with specific shapes that can be combined with other regions to produce more complex shapes. Once you have created a complex region, you can make that region the clip region for a device context, allowing you to perform complex clipping of drawing operations on a device context. You can also traverse a complex region, which allows you to call a particular function for every rectangle in the union of rectangles that make up the complex region.

MGL_clearRegion

MGL_copyIntoRegion

MGL_copyRegion

MGL_drawRegion

MGL_freeRegion

MGL_isSimpleRegion

MGL_newRegion

MGL_rgnEllipse

MGL_rgnEllipseArc

MGL_rgnGetArcCoords

MGL_rgnLine

MGL_rgnLineCoord

MGL_rgnPolygon

MGL_rgnPolygonCnvx

MGL_rgnPolygonCnvxFX

MGL_rgnPolygonFX

MGL_rgnSolidEllipse

MGL_rgnSolidEllipseArc

MGL_rgnSolidRect

MGL_rgnSolidRectCoord

MGL_rgnSolidRectPt

MGL_traverseRegion

 

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