Share via


BitmapLocker Class

Definition

Disposable helper class to aid in the Bitmap.LockBits/Bitmap.UnlockBits dance.

public ref class BitmapLocker : IDisposable
public class BitmapLocker : IDisposable
type BitmapLocker = class
    interface IDisposable
Public Class BitmapLocker
Implements IDisposable
Inheritance
BitmapLocker
Implements

Constructors

Name Description
BitmapLocker(Bitmap, ImageLockMode, Rectangle)

Locks the bits for the bitmap.

BitmapLocker(Bitmap, ImageLockMode)

Locks the bits for the bitmap.

BitmapLocker(Bitmap)

Locks the bits for the bitmap in ReadOnly mode

Properties

Name Description
Bitmap

Bitmap locked by this object

BitmapData

BitmapData for the bitmap locked by this object

Methods

Name Description
Dispose()

Unlocks the bits and disposes this object.

Applies to