Want to create a new bitmap image in Silverlight? Want to capture a part of your application and use it as a brush? Silverlight has an answer for you – WriteableBitmap is a BitmapSource-derived class that you can manipulate in the runtime, either by rendering UI elements on it or by manipulating pixels manually. The example (below) will show how to capture a movie frame or an entry form, along with altering some pixels on the captured image – try moving your mouse over either of the captured images.
Run the application online
Source code below:
fa06889c-abaa-4414-8a93-c36e9eb152ac|3|1.0|27604f05-86ad-47ef-9e05-950bb762570c
Tags :