Click or drag to resize

AtalaImage Constructor (IntPtr, Int32, Int32, PixelFormat)

Initialize a new instance of the %AtalaImage% class specifying the image pointer, Width, Height, and PixelFormat.

This method is obsolete. Please use the constructor that takes a PixelMemory object instead.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public AtalaImage(
	IntPtr imageData,
	int width,
	int height,
	PixelFormat pixelFormat
)

Parameters

imageData
Type: SystemIntPtr
The memory pointer of the image bits of an unpacked DIB (Device Independent Bitmap).
width
Type: SystemInt32
Width of the image.
height
Type: SystemInt32
Height of the image.
pixelFormat
Type: Atalasoft.ImagingPixelFormat
PixelFormat of the image.
Remarks

This constructor can be used to create an AtalaImage object from existing image data. The memory pointer will be managed by the AtalaImage object, so do not free the memory once the pointer is assigned to this object.

The RowStride of the image data must be 32-bit (DWORD) aligned.

See Also