O'Reilly logo

Programming Windows®, Six Edition by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required