This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapLockedException Class

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)


Visual Basic
<SerializableAttribute> _
Public Class BitmapLockedException _
	Inherits Exception
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.

Inheritance Hierarchy

See Also