Click or drag to resize

ResidentPixelMemory Constructor (Int64, Int32, Int32, Int32)

Initializes a new instance of the ResidentPixelMemory 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 ResidentPixelMemory(
	long sizeInBytes,
	int height,
	int rowStride,
	int offsetToFirstScanline
)

Parameters

sizeInBytes
Type: SystemInt64
The total size in bytes for the image.
height
Type: SystemInt32
The height of the image.
rowStride
Type: SystemInt32
The row stride of the image.
offsetToFirstScanline
Type: SystemInt32
The offset in bytes to first scanline from the start of the image data.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException offsetToFirstScanline;offset must be greater than or equal to zero or height;height must be greater than 0. or height;rowStride must be greater than 0.
ArgumentExceptionoffsetToFirstScanline;Offset to first scanline must be a multiple of 4
See Also