Summary

In this chapter we have seen that the Graphics object plays a major role in drawing and represents a canvas to draw graphics curves, shapes, and images.

We started this chapter by discussing the Graphics class properties. Then we discussed various Graphics class methods, which are divided into three categories: draw, fill, and miscellaneous. We saw how to use the draw methods to draw lines, rectangles, ellipses, curves, images, paths, and other graphics objects. We also discussed differences between the draw and fill methods and how to use the fill methods to fill rectangles, ellipses, curves, and graphics paths. We then discussed miscellaneous methods, covering the Clear, MeasureString, FromImage, FromHdc, and FromHwnd methods.

This ...

Get Graphics Programming with GDI+ 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.