Welcome to MSDN Blogs Sign in | Join | Help

WriteableBitmap Sample

Here's the source to the WriteableBitmap sample I showed at Mix.  The sample uses WriteableBitmap to take a "snapshot" of the running video to make a thumbnail.  Click on the image below to run the sample.  When running the sample, click on the running video to create a thumbnail.  You can find the video for this sample here.

 

 

WriteableBitmap Image

 

 

The demo shows the following new Silverlight 3 features:

 

·         WriteableBitmap

·         WrapPanel (new SDK control)

Published Sunday, March 22, 2009 7:25 PM by jstegman

Comments

Sunday, March 22, 2009 11:55 PM by infoblog » WriteableBitmap Sample

# infoblog » WriteableBitmap Sample

Monday, March 23, 2009 5:34 AM by KooKiz

# re: WriteableBitmap Sample

Hi,

There is a strange behaviour with the writeablebitmap. If I assign the writeablebitmap directly to the source of an image, it works (well, depending on the render tree, but that's another problem) :

WriteableBitmap wb = new WriteableBitmap(30, 40, PixelFormats.Bgr32);

wb.Render(this.sourceImage, new MatrixTransform());

image1.Source = wb;

But if I try to read directly the value of the WriteableBitmap pixels, it throws an exception :

WriteableBitmap wb = new WriteableBitmap(30, 40, PixelFormats.Bgr32);

wb.Render(this.sourceImage, new MatrixTransform());

int color = wb[0];

Is it a normal behaviour or is it because the writeablebitmap isn't yet fully implemented ?

Tuesday, April 07, 2009 12:59 PM by WzBn

# re: WriteableBitmap Sample

Hi, I'd like to save the image, in this case image1 to the isolatedstorage of the user. Any ideas how to do taht? Thanks

Anonymous comments are disabled
 
Page view tracker