O'Reilly logo

Pro Silverlight 2 in C# 2008 by Matthew MacDonald

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 8. Brushes and Transforms

In the previous chapter, you started your exploration into Silverlight's 2-D drawing model. You considered how you can use Shape-derived classes like the Rectangle, Ellipse, Polygon, Polyline, and Path to create a variety of different drawings. However, shapes alone fall short of what you need to create detailed 2-D vector art for a graphically rich application. In this chapter, you'll pick up the missing pieces.

First, you'll learn about the more exotic Silverlight brushes that allow you to create gradients, tiled patterns, and bitmap fills in any shape. Next, you'll see how you can use Silverlight's effortless support for transparency to blend multiple images and elements together. Finally, you'll consider

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