TWidgetSet.CombineRgn function
Combines two regions.
Declaration
function CombineRgn(Dest: HRGN; Src1: HRGN; Src2: HRGN;
fnCombineMode: LongInt): LongInt; virtualArguments
Dest | The Handle of the destination region. This region must already exist! |
Src1 | The handle of a region to combine. |
Src2 | The handle of a region to combine. |
fnCombineMode | How the regions are combined. |
Function result
The Destination's Region type, or ERROR (0).
Description
The Destination must already be initialized. The Return value is the Region type for the Destination, or ERROR (0).
fnCombineMode can be one of:
- RGN_AND
- Gets a region of all points which are in both source regions.
- RGN_COPY
- Gets an exact copy of the first source region.
- RGN_DIFF
- Gets a region of all points which are in the first source region but not in the second.(Src1 - Src2).
- RGN_OR
- Gets a region of all points which are in either the first source region or in the second.(Src1 + Src2).
- RGN_XOR
- Gets all points which are in either the first Source Region or in the second, but not in both.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
