次の方法で共有


Bitmap コンストラクタ (Int32, Int32, PixelFormat)

指定したサイズと形式を使用して、Bitmap クラスの新しいインスタンスを初期化します。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)

構文

'宣言
Public Sub New ( _
    width As Integer, _
    height As Integer, _
    format As PixelFormat _
)
'使用
Dim width As Integer
Dim height As Integer
Dim format As PixelFormat

Dim instance As New Bitmap(width, height, format)
public Bitmap (
    int width,
    int height,
    PixelFormat format
)
public:
Bitmap (
    int width, 
    int height, 
    PixelFormat format
)
public Bitmap (
    int width, 
    int height, 
    PixelFormat format
)
public function Bitmap (
    width : int, 
    height : int, 
    format : PixelFormat
)

パラメータ

  • width
    新しい Bitmap の幅 (ピクセル単位)。
  • height
    新しい Bitmap の高さ (ピクセル単位)。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, 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

参照

関連項目

Bitmap クラス
Bitmap メンバ
System.Drawing 名前空間