Freigeben über


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

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

Bitmap

Bitmap locked by this object

BitmapData

BitmapData for the bitmap locked by this object

Methods

Dispose()

Unlocks the bits and disposes this object.

Applies to