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

How do I search for a 16-digit long string (Luhn algorithm) using notepad++?

algorithm search notepad++ credit-card luhn

I have a large text file containing credit card numbers, I've been told I need to look through this file and then find possible credit card numbers, I've been using Notepad ++ 'Find in Files' regular

How to select a record by has-many association?

sql ruby-on-rails activerecord

I have User has_many Badges. When I want to retrieve all users who has gold badge, I just write:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.