We’ve been working with bitmap images since the early pages of this book: displaying them, using them for brushes, stretching them, skewing them, and rotating them. But this chapter is all about reaching into the inner soul of bitmaps and manipulating their pixel bits. Almost every program in this chapter makes use of the WriteableBitmap class, which derives from ImageSource and therefore can be used as a source for Image and ImageBrush:
Object DependencyObject ImageSource BitmapSource BitmapImage WriteableBitmap
From BitmapSource, WriteableBitmap inherits a SetSource method that you can use to load a bitmap file through an object that implements IRandomAccessStream.
What makes WriteableBitmap