TcxRegion Class
A region.
Declaration
TcxRegion = class(
TObject
)
Remarks
A region is a simple or complex closed shape. A GDI-based canvas uses regions as visual primitives and clip regions. The TcxRegion class wraps a Windows API region and has the following members that allow you to:
Create a new region (Create, CreateFromWindow, and CreateRoundCorners).
Specify a handle to the region (Handle).
Identify if the region is empty (IsEmpty).
Obtain the bounding rectangle for the region (BoundsRect).
Identify if a point or rectangle is within the region (PtInRegion, RectInRegion).
Compare two regions (IsEqual).
Shift the region horizontally and vertically (Offset).
Copy the region (Clone).
The DrawRegion, FillRegion, FrameRegion, and SetClipRegion procedures of a GDI-based canvas accept a TcxRegion object as a parameter.