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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access