ClipStrategy Enum

ClipStrategy enumeration

Specifies the strategy for clipping an SVG element. This enum is used to determine how to apply clipping paths or masks to SVG elements during rendering.

public enum ClipStrategy

Values

NameValueDescription
None0Indicates that no clipping will be applied to the SVG element. This strategy is used when there is no clip-path or mask associated with the SVG element.
Mask1This strategy applies a mask for clipping. This strategy is used when the SVG element has a mask element applied to it. Instead of clipping the canvas, a mask layer is used to determine the visibility of the SVG element. A mask is an image where the alpha value of each pixel is used to determine the visibility of the corresponding pixel in the SVG element.
Path2This strategy uses a path for clipping. This strategy is used when the SVG element has a clipPath element applied to it. A clipPath is a region defined by a path; anything outside of this path is clipped out.

See Also