GlobalAllocPixelMemory Constructor (IntPtr, Int64, Int32, Int32, Int32) |
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 GlobalAllocPixelMemory(
IntPtr memoryStart,
long numBytes,
int height,
int rowStride,
int offsetToFirstScanline
)
Public Sub New (
memoryStart As IntPtr,
numBytes As Long,
height As Integer,
rowStride As Integer,
offsetToFirstScanline As Integer
)
Parameters
- memoryStart
- Type: SystemIntPtr
The memory start. - numBytes
- Type: SystemInt64
The number bytes. - height
- Type: SystemInt32
The height. - rowStride
- Type: SystemInt32
The row stride. - offsetToFirstScanline
- Type: SystemInt32
The offset to first scanline.
Exceptions Exception | Condition |
---|
ArgumentNullException | memoryStart;memoryStart needs to be a valid IntPtr. |
ArgumentOutOfRangeException | numBytes;nBytes must be greater than 0 |
ArgumentException | memoryStart is not a valid pointer - maybe it wasn't allocated with GlobalAlloc or isn't the start of a block;memoryStart |
See Also