Skip to main content
All docs
V24.1

DXFillMode Enum

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

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

public enum DXFillMode

Members

Name Description
Alternate

The alternate fill mode.

Winding

The winding fill mode.

Related API Members

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