GlobalAllocPixelMemory Constructor (Int32, Int32, Int32, Int32, Boolean) |
Constructs a new PixelMemory object with memory allocated by GlobalAlloc.
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(
int numBytes,
int height,
int rowStride,
int offsetToFirstScanline,
bool zeroMemory
)
Public Sub New (
numBytes As Integer,
height As Integer,
rowStride As Integer,
offsetToFirstScanline As Integer,
zeroMemory As Boolean
)
Parameters
- 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. - zeroMemory
- Type: SystemBoolean
Indicates whether allocated memory should be cleared or not.
See Also