Name

ImageLockMode

Synopsis

This enumeration lists the various ways in which you can lock a bitmap with the Bitmap.LockBits() method. You should pick the option that most closely matches your requirements, as the framework can optimize the marshaling of the pixel data.


public enum ImageLockMode {

   ReadOnly = 1,

   WriteOnly = 2,

   ReadWrite = 3,

   UserInputBuffer = 4

}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) ImageLockMode

Passed To

System.Drawing.Bitmap.LockBits()

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.