Skip to main content
More on Silverlight 3's Writeable Bitmap
Entry Date: Rate:
Site:
Keywords:
RSS Description:
In Silverlight 3, you can use the new WriteableBitmap class to generate reflections without duplicating any XAML. In addition to letting you create bitmapped images from scratch, WriteableBitmap features a Render method that you can use to render all or part of the visual tree to a bitmap. To generate a reflection, you simply declare an Image in the scene and position it where you want the reflection to appear, and then use WriteableBitmap.Render to render everything you want reflected into the Image.
Comments:

Excellent and useful sample how to export a canvas to image using the Bitmap API.

Only one thing missing... how can I export this image as a ie JPEG?