Chapter 14. Bitmaps

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

Get Programming Windows®, Six Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.