Encapsulates a GDI+ drawing surface. This class cannot be inherited.
For a list of all members of this type, see Graphics Members.
[Visual Basic] <ComVisible(False)> NotInheritable Public Class Graphics Inherits MarshalByRefObject Implements IDisposable [C#] [ComVisible(false)] public sealed class Graphics : MarshalByRefObject, IDisposable [C++] [ComVisible(false)] public __gc __sealed class Graphics : public MarshalByRefObject, IDisposable [JScript] public ComVisible(false) class Graphics extends MarshalByRefObject implements IDisposable
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
The Graphics class provides methods for drawing objects to the display device. A Graphics object is associated with a specific device context.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System.Drawing (in System.Drawing.dll)