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.4.0.9.0.377 (.NET 4.5.2, x86)
Syntaxpublic AtalaImage(
IntPtr imageData,
int width,
int height,
PixelFormat pixelFormat
)
Public Sub New (
imageData As IntPtr,
width As Integer,
height As Integer,
pixelFormat As PixelFormat
)
Parameters
- imageData
- Type: System.IntPtr
The memory pointer of the image bits of an unpacked DIB (Device Independent Bitmap).
- width
- Type: System.Int32
Width of the image. - height
- Type: System.Int32
Height of the image. - pixelFormat
- Type: Atalasoft.Imaging.PixelFormat
PixelFormat of the image.
RemarksThis 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