Enum ClipRule

Enum ClipRule

Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.5.0)

Defines the rule to determine how to clip paths in SVG graphics.

[ComVisible(true)]
public enum ClipRule

Fields

Evenodd = 1

The even-odd winding rule for clipping paths.

Under the even-odd rule, a point is inside if a line from that point to infinity crosses an even number of path segments. This rule is simpler and can be more intuitive for basic shapes or non-overlapping paths.

Nonzero = 0

The nonzero winding rule for clipping paths.

Under the nonzero rule, a point is considered inside if a line drawn from that point to infinity crosses an odd number of path segments. This rule is useful for more complex shapes where path segments overlap.

Remarks

The clip rule property in SVG determines how paths are clipped. It is particularly important when a path intersects with itself or when multiple paths are combined. The rule helps in deciding which parts of the path are “inside” and should be filled (or visible) and which are “outside” and should be clipped (or invisible).

 English