Bitmap for WPF
Lock(RectL,BitmapLockFlags) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.WIC 名前空間 > Bitmap クラス > Lock メソッド : Lock(RectL,BitmapLockFlags) メソッド

The rectangle to be accessed.

The access mode you wish to obtain for the lock. This is a bitwise combination of BitmapLockFlags for read, write, or read and write access.

Value Meaning
BitmapLockFlags.Read

The read access lock.

BitmapLockFlags.Write

The write access lock.

?

Provides access to a rectangular area of the bitmap.

シンタックス
'宣言
 
Public Overloads Function Lock( _
   ByVal rcLockRef As RectL, _
   ByVal flags As BitmapLockFlags _
) As BitmapLock
public BitmapLock Lock( 
   RectL rcLockRef,
   BitmapLockFlags flags
)

パラメータ

rcLockRef

The rectangle to be accessed.

flags

The access mode you wish to obtain for the lock. This is a bitwise combination of BitmapLockFlags for read, write, or read and write access.

Value Meaning
BitmapLockFlags.Read

The read access lock.

BitmapLockFlags.Write

The write access lock.

?

戻り値の型

A reference that receives the locked memory location.

解説

Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixelswhile the Bitmap is locked for writing. Doing so will return an error, since locks are exclusive.

参照

Bitmap クラス
Bitmap メンバ
オーバーロード一覧