Use the ImageBrush to paint an area with all or some of the pixels from an exisitng image.
- Use an ImageBrush to paint an area of the screen…with the pixels from an image.…By default, the ImageBrush uses all the pixels in the image.…The ImageBrush is a TileBrush.…One of the benefits that a TileBrush gives you,…is that you can zoom in and pull out a subset…of those pixels.…So I can grab a subset of the pixels in the image…and paint with that.…For this example I'll use all the pixels.…I'll be painting with these two pictures in my project.…They're both pictures of flowers.…The items I'll be painting are these two polygons,…this text block, this button, this DockPanel…and a border that's around this DockPanel.…
I'll start by selecting my first polygon,…and going to properties, opening the brush section…of the property window, and then this shows you…all of the properties of type Brush.…I'll select Fill, and then I want to look for these buttons,…for the ImageBrush.…As you can see there is no ImageBrush,…but there is a TileBrush so this is the one that you want.…Click on TileBrush and then, skip down to this section,…
- Working with brushes
- Painting properties
- Painting in code
- Working with RGB channels
- Using hexadecimal values
- Setting opacity and transparency
- Editing color in the Visual Studio Color Editor
- Using gradient brushes
- Decorating with tiled brushes
- Adding brushes and colors to resources
- Working with opacity masks
Skill Level Intermediate
Windows Presentation Foundation: 2 Layoutwith Walt Ritscher2h 13m Intermediate
1. Brush and Color Overview
3. The Visual Studio Color Editor
4. The Gradient Brushes
5. The Tiled Brushes
6. Brushes and Colors in Resources
7. Opacity Mask
Examples of opacity patterns6m 47s
Next steps1m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.