2.1.14.3.18 page_get_image_type_from_type_str


Description

To get image file type from the extension of image file, just like will get IL_FORMAT_BMP, IL_FORMAT_EPS and so on according to "BMP", "EPS".

Syntax

int page_get_image_type_from_type_str( LPCSTR lpcszType )

Parameters

lpcszType
[input] the extension of image file

Return

image file type if success, else -1.

Examples

EX1

void page_get_image_type_from_type_str_Ex1()
{	
	int nRet = page_get_image_type_from_type_str("EPS");
	if(IL_FORMAT_EPS == nRet)
		printf("Get image type success!");
}

Remark

See Also

Header to Include

origin.h

Reference