Miscellaneous Advanced 2D Topics

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. We saw how to use colors to draw alpha-blended graphics objects.

We also discussed other topics and classes defined in the System.Drawing.Advanced2D namespace, including metadata of images, how to set gamma correction, region data, and drawing quality.

Chapter 10 will focus on transformations, presenting the basics of transformations, matrices, and matrix operations, and how to apply transformation in practice.

Категории