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)

Syntax

Visual Basic
<SerializableAttribute> _
Public Class BitmapLockedException _
	Inherits Exception
C#
[SerializableAttribute]
public class BitmapLockedException : Exception

Remarks

To avoid getting this exception, you can use BitsLocked to check if LockBits(Int32, Int32, Int32, Int32) was called without subsequent UnlockBits(BitmapData).

Note

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

Reference