Summary

The System.Drawing.Drawing2D namespace defines advanced functionality to work with 2D graphics objects. In this chapter we discussed the functionality defined in this namespace. We started the chapter by discussing the line caps and line styles. We saw sample code that set the line cap, line dash style, and line dash caps.

Next we covered graphics paths and graphics containers. We saw the usefulness of graphics paths and containers, and their advantages over nongraphics paths and containers. We also discussed graphics container states.

In the blending section of this chapter, we learned about color blending, alpha blending, and mixed blending. We discussed how to use linear gradient and path gradient brushes to draw blended objects. ...

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.