.NET Framework 클래스 라이브러리
Graphics 클래스
GDI+ 그리기 화면을 캡슐화합니다. 이 클래스는 상속될 수 없습니다.
네임스페이스: System.Drawing
어셈블리: System.Drawing(system.drawing.dll)
System.MarshalByRefObject
System.Drawing.Graphics
어셈블리: System.Drawing(system.drawing.dll)
구문
Visual Basic(선언)
Public NotInheritable Class Graphics Inherits MarshalByRefObject Implements IDeviceContext, IDisposable
Visual Basic(사용법)
Dim instance As Graphics
C#
public sealed class Graphics : MarshalByRefObject, IDeviceContext, IDisposable
C++
public ref class Graphics sealed : public MarshalByRefObject, IDeviceContext, IDisposable
J#
public final class Graphics extends MarshalByRefObject implements IDeviceContext, IDisposable
JScript
public final class Graphics extends MarshalByRefObject implements IDeviceContext, IDisposable
설명
Graphics 클래스는 개체를 그리는 메서드를 디스플레이 장치에 제공합니다. Graphics는 특정 장치 컨텍스트와 연결됩니다.
Graphics는 Control.CreateGraphics 메서드를 System.Windows.Forms.Control에서 상속한 개체에 대해 호출하거나 컨트롤의 Control.Paint 이벤트를 처리한 다음 System.Windows.Forms.PaintEventArgs 클래스의 Graphics 속성에 액세스하여 얻을 수 있습니다.
상속 계층 구조
System.Object System.MarshalByRefObject
System.Drawing.Graphics
스레드로부터의 안전성
이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.플랫폼
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
2.0, 1.1, 1.0에서 지원.NET Compact Framework
2.0, 1.0에서 지원참고 항목