Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

Commented Unassigned: AAWidthLine IndexOutOfRange [22063]

$
0
0
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)
Comments: ** Comment from web user: teichgraf **

Thanks for pointing this out. Can you also repro it with a different size like 1738 x 3856?
Also, it would be helpful and increase the chance of a faster resolve if you attach a sample sln.


Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>