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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public PixelMemoryLocker(
	PixelMemory mem
)

Parameters

mem
Type: Atalasoft.Imaging.MemoryPixelMemory
The PixelMemory object to be locked. If mem is null, it will be ignored.
Remarks
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.
Remarks
Construction of the object will immediately lock the pixel memory.
See Also