Click or drag to resize

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

Constructs a new PixelMemory object with memory allocated by GlobalAlloc in the provided pointer.

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


Type: SystemIntPtr
A pointer to the start at memory. MemoryStart must be allocated by GlobalAlloc.
Type: SystemInt32
The total number of bytes occupied by this image. Typically this will be height * rowstride, but it could be larger if there is space needed before or after the last scanline.
Type: SystemInt32
The height of the image.
Type: SystemInt32
The number of bytes in a scanline rounded up to the next multiple of 4.
Type: SystemInt32
An offset to the first scanline in the image. Typically, this is zero, but in some images, there is header information before the first scanline
This method will throw if memoryStart is not the start of a valid block or was not allocated by GlobalAlloc or was not allocated with specified size.
See Also