C# (CSharp) Eto.Drawing Bitmap.Lock - 4 examples found. These are the top rated real world C# (CSharp) examples of Eto.Drawing.Bitmap.Lock extracted from open source projects. You can rate examples to help us improve the quality of examples.
Locks the data of the image to directly access the bytes of the image
This locks the data to read and write to directly using unsafe pointers. After reading or updating the data, you must call BitmapData.Dispose() to unlock the data before using the bitmap. e.g.: using (var bd = bitmap.Lock ()) { byte* pdata = bd.Data; // access data }