.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 を取得するには、System.Windows.Forms.Control から継承したオブジェクトで Control.CreateGraphics メソッドを呼び出します。また、コントロールの 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参照