Saturday, July 11, 2009

Silverlight 3 WriteableBitmap is unwriteable

So I downloaded Silverlight 3 RTW(the real one, not Silverlight 3 beta) today getting all excited to try out the new stuff offered by Silverlight 3, and found that WritableBitmap does not exactly work like it does in Silverlight 3 beta. The problem? You can’t directly write the pixels, yeah so it’s basically unwritable. Then why not call it UnwriteableBitmap?

Maybe I’m doing something wrong in my code, or maybe there are ways to really write a WritableBitmap in Silverlight 3. I’ve been searching everywhere on the web but all the examples / codes only work in Silverlight 3 beta, and it seems that Silverlight 3 was released so hastily that there is not much documentation provided for this particular class. Well I hope more information will be available soon by Microsoft.

Microsoft does provide a documentation of breaking changes from Silverlight 3 Beta to Silverlight 3 RTW, but all it says are Lock() and Unlock() have been removed and does not say anything about writing Pixel data into WriteableBitmap.

What does WriteableBitmap (supposedly) do?

WritableBitmap lets you manipulate each pixel in a bitmap to generate customizable images. An example image that is generated through Silverlight 3 Beta WriteableBitmap is shown below.

WritableBitmap Does Not Work

If you know how to make WritableBitmap work, please let me know / post comments below. I’m really eager to try this out and use it for my next project. If the WriteableBitmap does work, it will be really useful for visual effects and game design. Right now the search engine is flooded by Silverligth 3 Beta examples that I can’t find any useful resources for the actual Silverlight 3 release.

13 comments:

zuppaman said...

Hey Byron,

I found your blog while searching on the writeable bitmap changes in RTW of SL3.
I fixed my previous writeablebitmap sample.
You can check the sample and code on http://www.lab101.be

Byron Singh said...

Thanks for the info. Now I can go experiment with writeablebitmap yay.

Anonymous said...

It is extremely interesting for me to read this post. Thanks for it. I like such themes and anything that is connected to this matter. I definitely want to read a bit more soon.

Anonymous said...

Don't stop posting such stories. I like to read blogs like this. By the way add more pics :)

Anonymous said...

Yes undoubtedly, in some moments I can say that I approve of with you, but you may be inasmuch as other options.
to the article there is still a question as you did in the go over like a lead balloon a fall in love with publication of this solicitation www.google.com/ie?as_q=aspersky internet security 7.0.1.321 ?
I noticed the phrase you have in the offing not used. Or you profit by the black methods of promotion of the resource. I have a week and do necheg

Anonymous said...

Hi there, just wanted to tell you, I loved this post.
It was practical. Keep on posting!
Here is my website ; bestonlinecasinoworld.tumblr.com

Anonymous said...

Hi there, after reading this remarkable post i am also delighted to share my
familiarity here with colleagues.
Also see my web site > affiliate marketing

Anonymous said...

I read this post completely about the difference of most recent and
earlier technologies, it's awesome article.
Also visit my web page ... affiliate network

Anonymous said...

top [url=http://www.c-online-casino.co.uk/]free casino games[/url] brake the latest [url=http://www.casinolasvegass.com/]casino las vegas[/url] manumitted no set aside hand-out at the leading [url=http://www.baywatchcasino.com/]easy casino
[/url].

Anonymous said...

Hi there mates, its great paragraph about tutoringand completely explained, keep it up all
the time.

Here is my web site ... http://iybclan.com/content/lower-testosterone-levels-spell-diabetic-issues-hazard-for-men

Anonymous said...

I will right away snatch your rss feed as I can't in finding your email subscription hyperlink or e-newsletter service. Do you have any? Kindly let me realize in order that I may subscribe. Thanks.

Also visit my page :: Testostrong

Anonymous said...

I just like the valuable info you provide to your articles.

I'll bookmark your blog and take a look at again right here regularly. I am quite sure I'll be told lots of new stuff right here!
Good luck for the next!

my web site ... Stem Cell Wrinkle Cream

Anonymous said...

Hey this is kinda of off topic but I was wondering if blogs
use WYSIWYG editors or if you have to manually code with HTML.
I'm starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be greatly appreciated!

My web page stargames gutschein 2013