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: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public GlobalAllocPixelMemory(
IntPtr memoryStart,
int numBytes,
int height,
int rowStride,
int offsetToFirstScanline
)
Public Sub New (
memoryStart As IntPtr,
numBytes As Integer,
height As Integer,
rowStride As Integer,
offsetToFirstScanline As Integer
)
Parameters
- memoryStart
- Type: SystemIntPtr
A pointer to the start at memory. MemoryStart must be allocated by GlobalAlloc. - numBytes
- 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. - height
- Type: SystemInt32
The height of the image. - rowStride
- Type: SystemInt32
The number of bytes in a scanline rounded up to the next multiple of 4. - offsetToFirstScanline
- 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
Remarks 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