Create an Image from unmanaged data.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public Image(
	int width,
	int height,
	int stride,
	IntPtr scan0
)
Public Sub New ( _
	width As Integer, _
	height As Integer, _
	stride As Integer, _
	scan0 As IntPtr _
)
public:
Image(
	int width, 
	int height, 
	int stride, 
	IntPtr scan0
)

Parameters

width
Int32
The width of the image
height
Int32
The height of the image
stride
Int32
Size of aligned image row in bytes
scan0
IntPtr
Pointer to aligned image data, where each row should be 4-align

Remarks

The caller is responsible for allocating and freeing the block of memory specified by the scan0 parameter, however, the memory should not be released until the related Image is released.

See Also