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 theGetClip
procedure.
PROCEDURE GetClip (rgn:\xDDRgnHandle);
rgn
- A handle to the region to be clipped to match the clipping region of the current graphics port.
DESCRIPTION
TheGetClip
procedure changes the region specified in thergn
parameter to one that's equivalent to the clipping region of the current graphics port. TheGetClip
procedure doesn't change the region handle.You can use the
GetClip
andSetClip
procedures to preserve the current clipping region: useGetClip
to save the current port's clipping region, and useSetClip
to 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
TheGetClip
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.