Click or drag to resize

GlobalAllocPixelMemory Constructor (IntPtr, Int64, Int32, Int32, Int32)

Initializes a new instance of the GlobalAllocPixelMemory class.

Namespace:  Atalasoft.Imaging.Memory
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public GlobalAllocPixelMemory(
	IntPtr memoryStart,
	long numBytes,
	int height,
	int rowStride,
	int offsetToFirstScanline
)

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
ExceptionCondition
ArgumentNullExceptionmemoryStart;memoryStart needs to be a valid IntPtr.
ArgumentOutOfRangeExceptionnumBytes;nBytes must be greater than 0
ArgumentExceptionmemoryStart is not a valid pointer - maybe it wasn't allocated with GlobalAlloc or isn't the start of a block;memoryStart
See Also