Table of Contents

Enum CombineMode

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Specifies the different methods by which two geometries can be combined.

public enum CombineMode

Fields

Exclude = 3

The second region is excluded from the first. Given two geometries, A and B, the area of geometry B is removed from the area of geometry A, producing a region that is A-B.

Intersect = 1

The two regions are combined by taking their intersection. The new area consists of the overlapping region between the two geometries.

Union = 0

The two regions are combined by taking the union of both. Given two geometries, A and B, the resulting geometry is geometry A + geometry B.

Xor = 2

The two regions are combined by taking the area that exists in the first region but not the second and the area that exists in the second region but not the first. Given two geometries, A and B, the new region consists of (A-B) + (B-A).

Remarks

The following illustration shows the different geometry combine modes.