Back to Devexpress

TcxRegionOperation Enum

vcl-cxgraphics-6a7045f4.md

latest1.3 KB
Original Source

TcxRegionOperation Enum

Enumerates combine operations applicable to window regions.

Declaration

delphi
TcxRegionOperation = (
    roSet,
    roAdd,
    roSubtract,
    roIntersect
);

Members

Name
roSet
roAdd
roSubtract
roIntersect

Remarks

Options include:

ValueDescription
roSetReplaces the current region with a specified source region. This value maps to the RGN_COPY constant.
roAddJoins two window regions. This value maps to the RGN_OR constant.
roSubtractShrinks the current window region down to a difference between the current and source regions. This value maps to the RGN_DIFF constant.
roIntersectShrinks the current window region down to an intersection between the current and source regions. This value maps to the RGN_ADD constant.

The TcxCanvas.SetClipRegion and TcxRegion.Combine procedures accept a TcxRegionOperation value.

See Also

cxGraphics Unit