Bitmap オブジェクトをシステム メモリにロックします。
Public Function LockBits( _
ByVal rect As Rectangle, _ ByVal flags As ImageLockMode, _ ByVal format As PixelFormat _) As BitmapData
[C#]
public BitmapData LockBits(Rectanglerect,ImageLockModeflags,PixelFormatformat);
[C++]
public: BitmapData* LockBits(Rectanglerect,ImageLockModeflags,PixelFormatformat);
[JScript]
public function LockBits(
rect : Rectangle,flags : ImageLockMode,format : PixelFormat) : BitmapData;
パラメータ
- rect
Bitmap のロックする部分を指定する Rectangle 構造体。 - flags
Bitmap オブジェクトのアクセス レベル (読み取り/書き込み) を指定する ImageLockMode 列挙体。 - format
この Bitmap オブジェクトのデータ形式を指定する PixelFormat 列挙体。
戻り値
このロック処理に関する情報を格納している BitmapData オブジェクト。
解説
BitmapData オブジェクトでは、サイズ、ピクセル形式、メモリ内におけるピクセル データの開始アドレス、各スキャン ライン (ストライド) の長さなど、ビットマップ オブジェクトの属性を指定します。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ