This documentation is archived and is not being maintained.
ImageLockMode Enumeration
.NET Framework 1.1
Specifies flags that are passed to the flags parameter of the Bitmap.LockBits method. The LockBits method locks a portion of an image so that you can read or write the pixel data.
[Visual Basic] <Serializable> Public Enum ImageLockMode [C#] [Serializable] public enum ImageLockMode [C++] [Serializable] __value public enum ImageLockMode [JScript] public Serializable enum ImageLockMode
Members
| Member name | Description |
|---|---|
| ReadOnly | Specifies that a portion of the image is locked for reading. |
| ReadWrite | Specifies that a portion of the image is locked for reading or writing. |
| UserInputBuffer | Specifies that the buffer used for reading or writing pixel data is allocated by the user. If this flag is set, the flags parameter of the Bitmap.LockBits method serves as an input parameter (and possibly as an output parameter). If this flag is cleared, then the flags parameter serves only as an output parameter. |
| WriteOnly | Specifies that a portion of the image is locked for writing. |
Requirements
Namespace: System.Drawing.Imaging
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Drawing (in System.Drawing.dll)
See Also
Show: