Поделиться через


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)

Comments

  • Anonymous
    March 22, 2009
    PingBack from http://blog.a-foton.ru/index.php/2009/03/23/writeablebitmap-sample/

  • Anonymous
    March 22, 2009
    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 ?

  • Anonymous
    April 07, 2009
    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
    February 02, 2011
    The comment has been removed

  • Anonymous
    June 20, 2011
    how to get pixel in coordinat x,y??