I was checking the MS library.
and it looks like PixelBuffer.AsStream()
is obsolete for the Universal App development.
I'm using Win10(build 10240) with VS2015 Community version.
Do I miss anything ?
Additionally, what's the best way to encode or write a stream into the WriteableBitmap from the bytes or integers array?
I was trying the method from the BitmapEncoder, but I could create it only this way:
BitmapEncoder enc = await BitmapEncoder.CreateForTranscodingAsync(fileStream, decoder);
enc.SetPixelData(BitmapPixelFormat.Bgra8, BitmapAlphaMode.Straight, W, H, 200, 200, sourcePixels);
and afterwards there was no modifications visible on the WriteableBitmap. otherwise the framework was throwing exceptions(outside of my code)
Decoder was working fine and I've get all pixels properly decoded and streamed to byte[] sourcePixels array.