O'Reilly logo

3D Programming for Windows® 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

Tile Brushes

The three remaining brush classes are ImageBrush, DrawingBrush, and VisualBrush. In theory, these brushes have quite a bit of overlapping functionality, but in most real-life applications you'll probably use them for these specific purposes:

  • ImageBrush for brushes based on bitmaps

  • DrawingBrush for brushes based on vector drawings

  • VisualBrush for brushes based on visual objects, including user-interface elements and controls

ImageBrush defines only one property: The ImageSource property is of type ImageSource, which is the abstract class from which BitmapSource and DrawingImage descend. BitmapSource is the abstract class from which all the bitmap classes descend.

DrawingBrush also defines just one property: The Drawing property, which is ...

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