Enum CanvasFillRule

Enum CanvasFillRule

Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML.dll (25.2.0)

This enumeration is used to select the fill rule algorithm by which to determine if a point is inside or outside a path.

[ComVisible(true)]
public enum CanvasFillRule

Fields

EvenOdd = 1

The “evenodd” value indicates the even-odd rule, wherein a point is considered to be outside a shape if the number of times a half-infinite straight line drawn from that point crosses the shape’s path is even.

NonZero = 0

The value “nonzero” value indicates the non-zero winding rule, wherein a point is considered to be outside a shape if the number of times a half-infinite straight line drawn from that point crosses the shape’s path going in one direction is equal to the number of times it crosses the path going in the other direction.