O'Reilly logo

Microsoft® Mobile Development Handbook by Peter Foot, Daniel Moth, Andy Wigley

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

Using Advanced Formatting Techniques

So far in this chapter, we have demonstrated the simpler drawing techniques. This section discusses three techniques that add a little more sparkle to your graphics programming: using a gradient fill to start drawing with one color and change to another color as you move across or down the drawing surface, drawing images with a transparent background, and using alpha blending to draw an image with variable opacity.

Drawing Using Gradient Fill

Gradient fill is a pleasing effect in which you start drawing in one color that gradually changes to a different color. You can paint this transition from top to bottom or from left to right by setting the appropriate flag. There is no direct support for this effect in the ...

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