Bitmap Effects

Shapes, transforms, and brushes are core ingredients in 2-D drawings. Along with these basics (and the geometries and drawings you'll learn about next chapter), WPF also includes a few frills.

One of these frills is a set of bitmap effects: ready-made visual effects that you can apply to any element. The goal of bitmap effects is to give you an easy, declarative way to enhance the appearance of text, images, buttons, and other controls. Rather than write your own drawing code, you simply use one of the classes that derives from BitmapEffect (in the System.Windows.Media.Effects namespace) to get instant effects such as blurs, glows, and drop shadows.

There are two key disadvantages to bitmap effects. The first limitation is that ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.