Click or drag to resize

PixelMemoryLocker Constructor (PixelMemory)

Constructs an object that will automatically lock and unlock the supplied PixelMemory.

Namespace:  Atalasoft.Imaging.Memory
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public PixelMemoryLocker(
	PixelMemory mem


Type: Atalasoft.Imaging.MemoryPixelMemory
The PixelMemory object to be locked. If mem is null, it will be ignored.
PixelMemoryLocker should never be used outside of a using block. PixelMemoryLocker depends on Dispose being called in a predictable manner to operate correctly. Using a PixelMemoryLocker outside a using block will cause unpredictable behavior since the memory will be unlocked when the object is either disposed or garbage collected.
Construction of the object will immediately lock the pixel memory.
See Also