http://www.emgu.com
Loads an image from the specified file and returns the pointer to the loaded image. Currently the following file formats are supported: Windows bitmaps - BMP, DIB; JPEG files - JPEG, JPG, JPE; Portable Network Graphics - PNG; Portable image format - PBM, PGM, PPM; Sun rasters - SR, RAS; TIFF files - TIFF, TIF; OpenEXR HDR images - EXR; JPEG 2000 images - jp2.

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

Syntax

C#
public static IntPtr cvLoadImage(
	string filename,
	LOAD_IMAGE_TYPE loadType
)
Visual Basic
Public Shared Function cvLoadImage ( 
	filename As String,
	loadType As LOAD_IMAGE_TYPE
) As IntPtr
Visual C++
public:
static IntPtr cvLoadImage(
	String^ filename, 
	LOAD_IMAGE_TYPE loadType
)
F#
static member cvLoadImage : 
        filename : string * 
        loadType : LOAD_IMAGE_TYPE -> IntPtr 

Parameters

filename
Type: System..::..String
The name of the file to be loaded
loadType
Type: Emgu.CV.CvEnum..::..LOAD_IMAGE_TYPE
The image loading type

Return Value

Type: IntPtr
The loaded image

See Also