O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11.5. System.Drawing.Drawing2D namespace

The System.Drawing.Drawing2D namespace contains classes and enumerations that provide advanced two-dimensional and vector graphics functionality. Using this namespace we can utilize gradient brushes, perform geometric transformations with the Matrix class, and create paths by using the GraphicsPath class.

Gradient brushes

The System.Drawing.Drawing2D namespace defines two classes that represent gradient brushes – the LinearGradientBrush and PathGradientBrush classes. Both are based on the abstract Brush class and extend it with gradient-filling functionality. The LinearGradientBrush class provides two-color gradients, as well as customized multicolor gradients. To specify the blend pattern, we should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required