Summary

This chapter explains a number of graphics drawing techniques you can use to paint on Forms and other controls. It also explains a number of more advanced techniques such as painting using a gradient fill, painting images excluding their background, and combining images using alpha blending.

Note that although the examples in this chapter all painted onto a Windows Form, you can use these techniques also to paint in custom controls. With custom controls, which is the subject of Chapter 15, you get the added advantage of inheriting the standard docking and anchoring behavior inherent in all controls.

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.