Important: The information in this document is obsolete and should not be used for new development.
GetClip
To save the clipping region of the current graphics port (basic or color), use theGetClipprocedure.
PROCEDURE GetClip (rgn:\xDDRgnHandle);
rgn- A handle to the region to be clipped to match the clipping region of the current graphics port.
DESCRIPTION
TheGetClipprocedure changes the region specified in thergnparameter to one that's equivalent to the clipping region of the current graphics port. TheGetClipprocedure doesn't change the region handle.You can use the
GetClipandSetClipprocedures to preserve the current clipping region: useGetClipto save the current port's clipping region, and useSetClipto restore it. If, for example, you want to draw a half-circle on the screen, you can set the clipping region to half of the square that would enclose the whole circle, and then draw the whole circle. Only the half within the clipping region is actually drawn in the graphics port.SPECIAL CONSIDERATIONS
TheGetClipprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.