Stream stream = WriteableBitmap.PixelBuffer.AsStream() missing

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?


using System.Runtime.InteropServices.WindowsRuntime;

Need Your Help

Running SQL based on a query stored within a field?

sql oracle plsql

I'm trying to populate a database with certain values, based on a query stored within another table.

There was an error parsing the query. [ Token line number = 1,Token line offset = 20,Token in error = - ] C#

c# database sqlcommand sdf

I am using a SQL Server Compact 3.5 database file (.sdf) in C#; with the code I can read from albums_tbl but I want to read from users-tbl or other tables it errors :