Stream stream = WriteableBitmap.PixelBuffer.AsStream() missing
buffer, c#, extension-methods, windows-8
Solution
using System.Runtime.InteropServices.WindowsRuntime;
Problem
I'm writing windows store app (8.1) and I have sample (probably for win 8.0): ``` private WriteableBitmap WriteableBitmap; … WriteableBitmap = new WriteableBitmap(500,500); … using (Stream stream = WriteableBitmap.PixelBuffer.AsStream()) { … } ``` So I have created new win 8.1 project and trying to do it same way, but when I get to: ``` using (Stream stream = WriteableBitmap.PixelBuffer.AsStream()) ``` My project dont recognize `*.AsStream()` method, can anyone tell me why?