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.0.1.0 (2.0.1.0)

Syntax

C#
public static IntPtr cvLoadImage(
	string filename,
	LOAD_IMAGE_TYPE loadType
)
Visual Basic (Declaration)
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
)

Parameters

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

Return Value

The loaded image

See Also