Click or drag to resize
AB4D logo

ReaderSvgOverrideMiterLimit Property

Gets or sets a value that is used instead of the miter limit specified in the svg file. If value is 0, than the miter limit from svg file is used. Default value is 0.

Namespace:  Ab2d
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public double OverrideMiterLimit { get; set; }

Property Value

Type: Double
Remarks

OverrideMiterLimit gets or sets a value that is used instead of the miter limit specified in the svg file.

This property is required to workaround the problems that are created because WPF and svg use the miter limit value differently.

In sgv the miter limit defines an angle at which the miter line cap is changed into bevel line cap. For example the if miter limit in svg is 4 (default value for svg), this means that when the angle between two lines is less than 29 degrees, the bevel line cab will be used instead of miter line cab.

In WPF the miter limit defines how far away the miter is allowed to go. For example if miter limit in WPF is 4 and line thickness is 20, than the miter can extent 20 * 4 = 80 points away from the line connection point.

The WPF of using miter limit on one hand provides more control over the rendered line cap, but in cases where the angles between lines are very small, the rendering can create some strange artifacts that are not created in svg. If there are some artifacts in the image, it is recommended to set the default value of OverrideMiterLimit to 2 or 1.

For backward compatibility the default the value of the OverrideMiterLimit is set to 0. This value does not override the miter limit svg value.

See Also