Drawing with GDI+

GDI+ is responsible for two-dimensional graphics, imaging, and typography for the Windows operating system. The .NET Framework includes classes that act as a managed wrapper around GDI+, providing graphics capabilities for Windows Forms.

The features of GDI+ are similar to those of the Java 2D API included in the Java 2 platform; with some minor exceptions, the principles behind both technologies are the same, and knowledge of Java 2D can easily be translated to GDI+.

The System.Drawing.Graphics class represents a container on which GDI+ operations can be performed; this class is the equivalent of the java.awt.Graphics2D and java.awt.Graphics classes from the Java API.

Obtaining a Graphics Instance

The most common approach to obtaining ...

Get C# for Java Developers 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.