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: (.NET 4.5.2, x86)
public AtalaImage(
	IntPtr imageData,
	int width,
	int height,
	PixelFormat pixelFormat


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

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