Click or drag to resize

ResidentPixelMemoryAllocateMemory Method

Allocates memory for this PixelMemory object and reports it for tracking.

Namespace:  Atalasoft.Imaging.Memory
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
protected IntPtr AllocateMemory(
	long numBytes,
	bool zeroMemory
)

Parameters

numBytes
Type: SystemInt64
The nubmer of bytes to allocate.
zeroMemory
Type: SystemBoolean
Indicates whether or not the memory should be cleared.

Return Value

Type: IntPtr

[Missing <returns> documentation for "M:Atalasoft.Imaging.Memory.ResidentPixelMemory.AllocateMemory(System.Int64,System.Boolean)"]

Remarks
Subclasses of ResidentPixelMemory do not need to be concerned with tracking memory through PixelMemoryTracker if it is allocated in a single block. AllocateMemory automatically tracks it.
See Also