ReaderSvgOverrideMiterLimit Property |
Namespace: Ab2d
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.