SvgImageLimits.MaxClipPathReferencedPointCount Property
Specifies the maximum number of points in referenced shapes that the SVG renderer adds to a clip path.
Namespace: DevExpress.Utils.Svg
Assembly: DevExpress.Data.v26.1.dll
NuGet Package: DevExpress.Data
Declaration
Property Value
| Type | Description |
|---|---|
| Int32 | The maximum number of points in referenced shapes of a clip path. The default value is DefaultMaxClipPathReferencedPointCount (8,192). |
Remarks
The renderer does not add referenced shapes over the limit to the clip path and renders the image partially. In this instance, the renderer writes the following warning to trace listeners: “The SVG image is rendered partially: …”.
The renderer ignores <use> elements that refer to a <clipPath> element (the SVG specification does not allow these references).
The limit applies to the entire process. Set the property once at application startup, before the application loads SVG images.
Warning
Raise or disable this limit only if all SVG images in your application come from trusted sources. An SVG image with complex clip paths from an untrusted source can cause a denial of service.
using DevExpress.Utils.Svg;
// Call at application startup.
SvgImageLimits.MaxClipPathReferencedPointCount = 16 * 1024;
For additional information, refer to the following help topic: SVG Image Limits.