WriteableBitmapEx Version 1.5.0, WinRT Windows running on W10
The following code produces IndexOutOfRangeException
bitmap extent [w=1737, h=3855], color is black FF000000
int height = context.Bitmap.PixelHeight; // = 1737
int width = context.Bitmap.PixelWidth; // = 3855
!==> context.Bitmap.DrawLineAa(0, height - 1, width / 2, height - 1, color, 2);
at Windows.UI.Xaml.Media.Imaging.WriteableBitmapExtensions.AAWidthLine(Int32 width, Int32 height, BitmapContext context, Single x1, Single y1, Single x2, Single y2, Single lineWidth, Int32 color)
at Windows.UI.Xaml.Media.Imaging.WriteableBitmapExtensions.DrawLineAa(WriteableBitmap bmp, Int32 x1, Int32 y1, Int32 x2, Int32 y2, Color color, Int32 strokeThickness)
The following code produces IndexOutOfRangeException
bitmap extent [w=1737, h=3855], color is black FF000000
int height = context.Bitmap.PixelHeight; // = 1737
int width = context.Bitmap.PixelWidth; // = 3855
!==> context.Bitmap.DrawLineAa(0, height - 1, width / 2, height - 1, color, 2);
at Windows.UI.Xaml.Media.Imaging.WriteableBitmapExtensions.AAWidthLine(Int32 width, Int32 height, BitmapContext context, Single x1, Single y1, Single x2, Single y2, Single lineWidth, Int32 color)
at Windows.UI.Xaml.Media.Imaging.WriteableBitmapExtensions.DrawLineAa(WriteableBitmap bmp, Int32 x1, Int32 y1, Int32 x2, Int32 y2, Color color, Int32 strokeThickness)