Skip to main content

Media Namespace

Namespace Avalonia.Media

Types

This class is adapted for use with WPF StreamGeometryContext, and needs to be created explicitly for each particular arc.

Some helpers

It can handle ellipses which are not aligned with the x and y reference axes of the plane, as well as their parts.

Another improvement is that this class can handle degenerated cases like for example very flat ellipses(semi-minor axis much smaller than semi-major axis) and drawing of very small parts of such ellipses at very high magnification scales.This imply monitoring the drawing approximation error for extremely small values.Such cases occur for example while drawing orbits of comets near the perihelion.

When the arc does not cover the complete ellipse, the lines joining the center of the ellipse to the endpoints can optionally be included or not in the outline, hence allowing to use it for pie-charts rendering. If these lines are not included, the curve is not naturally closed.

On this page