Source/OxyPlot.Avalonia/CanvasRenderContext.cs
/// <summary>
/// Converts a <see cref="ScreenPoint" /> to a pixel aligned<see cref="Point" />.
/// </summary>
/// <param name="pt">The screen point.</param>
/// <returns>A pixel aligned <see cref="Point" />.</returns>
Converts a  to a pixel aligned.
Converts a to a pixel aligned .
private static Point ToPixelAlignedPoint(ScreenPoint pt)
        {
            return new Point(0.5 + (int)pt.X, 0.5 + (int)pt.Y);
        }
private static Point ToPixelAlignedPoint ( ScreenPoint pt ) { return new Point ( 0.5 + ( int ) pt . X , 0.5 + ( int ) pt . Y ) ; }
Converts a  to a pixel aligned.
Converts a to a pixel aligned .
// adding 0.5 to get pixel boundary alignment, seems to work // http://weblogs.asp.net/mschwarz/archive/2008/01/04/silverlight-rectangles-paths-and-line-comparison.aspx // http://www.wynapse.com/Silverlight/Tutor/Silverlight_Rectangles_Paths_And_Lines_Comparison.aspx // TODO: issue 10221 - should consider line thickness and logical to physical size of pixels
A pixel aligned .
A pixel aligned .
pt
ScreenPoint
The screen point.
The screen point .