Skip to Content
Programming Windows®, Six Edition
book

Programming Windows®, Six Edition

by Charles Petzold
January 2013
Intermediate to advanced content levelIntermediate to advanced
1136 pages
34h 9m
English
Microsoft Press
Content preview from Programming Windows®, Six Edition

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.
Start your free trial

You might also like

Programming Windows®, Fifth Edition

Programming Windows®, Fifth Edition

Charles Petzold
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9780735671751Purchase book