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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax protected IntPtr AllocateMemory(
long numBytes,
bool zeroMemory
)
Protected Function AllocateMemory (
numBytes As Long,
zeroMemory As Boolean
) As IntPtr
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:
IntPtrRemarks 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