O'Reilly logo

C# for Java Developers by Adam Freeman, Allen Jones

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

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 ...

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