Microsoft® .NET Compact Framework (Core Reference)
by Andy Wigley, Stephen Wheelwright, Robert Burbidge, Rory MacLoed, Mark Sutton
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access