Source/OxyPlot.Avalonia/CanvasRenderContext.cs
/// <summary>
/// Converts an <see cref="OxyRect" /> to a pixel aligned <see cref="Rect" />.
/// </summary>
/// <param name="r">The rectangle.</param>
/// <returns>A pixel aligned<see cref="Rect" />.</returns>
Converts an  to a pixel aligned .
Converts an to a pixel aligned .
private static Rect ToPixelAlignedRect(OxyRect r)
        {
            var x = 0.5 + (int)r.Left;
            var y = 0.5 + (int)r.Top;
            var ri = 0.5 + (int)r.Right;
            var bo = 0.5 + (int)r.Bottom;
            return new Rect(x, y, ri - x, bo - y);
        }
private static Rect ToPixelAlignedRect ( OxyRect r ) { var x = 0.5 + ( int ) r . Left ; var y = 0.5 + ( int ) r . Top ; var ri = 0.5 + ( int ) r . Right ; var bo = 0.5 + ( int ) r . Bottom ; return new Rect ( x , y , ri - x , bo - y ) ; }
Converts an  to a pixel aligned .
Converts an to a pixel aligned .
// TODO: similar changes as in ToPixelAlignedPoint
A pixel aligned.
A pixel aligned .
r
OxyRect
None