http://www.emgu.com
Create an Image from unmanaged data.

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

Syntax

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

Parameters

width
Type: System..::..Int32
The width of the image
height
Type: System..::..Int32
The height of the image
stride
Type: System..::..Int32
Size of aligned image row in bytes
scan0
Type: System..::..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