Back to Devexpress

DXFillMode Enum

corelibraries-devexpress-dot-drawing-12aa6cf7.md

latest1.8 KB
Original Source

DXFillMode Enum

Lists values that indicate fill modes of a closed path interior.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public enum DXFillMode
vb
Public Enum DXFillMode

Members

NameDescription
Alternate

The alternate fill mode.

| | Winding |

The winding fill mode.

|

The following properties accept/return DXFillMode values:

Remarks

The default mode is Alternate. To determine the interiors of closed figures in alternate mode, draw a line from any arbitrary start point in the path to a point outside the path. If the line crosses an odd number of path segments, the starting point is inside the closed region and is therefore part of the fill or clipping area. An even number of crossings means that the point is not in an area to be filled or clipped.

Winding mode considers the direction of the path segments at each intersection. It adds one for every clockwise intersection, and subtracts one for every counterclockwise intersection. If the result is nonzero, the point is considered inside the fill or clip area. A zero count means that the point lies outside the fill or clip area.

See Also

DevExpress.Drawing Namespace