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

New Post: AccessViolationException when accessing pixel color (GetPixel())

$
0
0
You are using it wrong. The WinRT's SetSource will not load it right away, so when you access a pixel the buffer is not filled. Just check PixelWidth and PixelHeight

That's why WBX has the FromStrean extension method:
var tmpImage = await BitmapFactory.New(1, 1).FromStream(memoryStream);
  • Rene

Viewing all articles
Browse latest Browse all 360

Trending Articles



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