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 ...

Get Microsoft® Mobile Development Handbook now with O’Reilly online learning.

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