9.7. Miscellaneous Advanced 2D Topics

So far in this chapter, we have covered line caps and line styles, graphics paths, graphics containers, graphics container states, color blending and alpha blending, and the use of linear and path gradient brushes. The System.Drawing.Advanced2D namespace contains topics that don’t fall into any of these categories. In this section we will cover a few of these topics:

  • Region data

  • The SmoothingMode enumeration

  • The PixelOffsetMode enumeration

9.7.1. Region Data

Sometimes we need to get and set a region’s data or create a Region object from an array of bytes. A region’s data is an array of bytes that specify the region. The RegionData class can be used to read or write the array. This class has only one property, ...

Get Graphics Programming with GDI+ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.