The exception which is thrown when you try to access the bitmap pixel data which has been locked with LockBits(Int32, Int32, Int32, Int32) method.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
<SerializableAttribute> _ Public Class BitmapLockedException _ Inherits Exception
[SerializableAttribute] public class BitmapLockedException : Exception
To avoid getting this exception, you can use BitsLocked to check if LockBits(Int32, Int32, Int32, Int32) was called without subsequent UnlockBits(BitmapData).
This exception is never thrown when object is locked with Lock() method which is used to provide thread safety of the operations. It is raised only when bitmap bits are locked.