ImageLockMode Enumeration

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


typedef enum ImageLockMode {
} ;


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 Bitmap::LockBits method 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.


Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusimaging.h (include Gdiplus.h)

See Also