导航:  GdiPlus Classes > Enumerations >

ImageLockMode

上一页返回章节概述下一页

The ImageLockMode enumeration specifies flags that are passed to the flags parameter of the GdipBitmapLockBits function. The GdipBitmapLockBits function locks a portion of an image so that you can read or write the pixel data.

 

C++ Syntax

 

typedef enum {

ImageLockModeRead = 0x0001,

ImageLockModeWrite = 0x0002,

ImageLockModeUserInputBuf = 0x0004

} ImageLockMode;

 

FreeBASIC 语法

 

enum

ImageLockModeRead         = &H0001

ImageLockModeWrite        = &H0002

ImageLockModeUserInputBuf = &H0004

end enum

 

常数

 

ImageLockModeRead

 

Specifies that a portion of the image is locked for reading.

 

ImageLockModeWrite

 

Specifies that a portion of the image is locked for writing.

 

ImageLockModeUserInputBuf

 

Specifies that the buffer used for reading or writing pixel data is allocated by the user. If this flag is set, then the lockedBitmapData parameter of the GdipBitmapLockBits function serves as an input parameter (and possibly as an output parameter). If this flag is cleared, then the lockedBitmapData parameter serves only as an output parameter.