Summary

In this chapter, we covered the basics for producing your own custom graphics. We introduced the Graphics object, as well as the objects that you need to draw shapes, text, and images. We examined the different methods for drawing outlines and solid shapes, text, icons, and bitmaps. We discussed the Region object and how you can create complex shapes using the Exclude, Intersect, Xor, and Union methods of the Region object. We discussed the OnPaint method and how it should be used to make sure that the graphics you have drawn onto your form or custom control redraw after they have been obscured by another form or custom control.

Throughout this chapter, we used the example of producing graphs of sales figures for a company. The SalesGraphs ...

Get Microsoft® .NET Compact Framework (Core Reference) 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.