ImageGetType

ImageGetType returns the picture file type.

nType = ImageGetType(hImg)
nType = ImageGetType(hImg, bEx)

Return Value

nType is one of the following values:

value meaning
0 OleObject
1 Metafile (WMF, EMF, EMF+, EMF+Dual)
2 Bitmap (PNG, JPG, …).

If bEx is not 0:

Wert Bedeutung
0 G_FORMAT_UNKOWN
1 G_FORMAT_MEMBMP
2 G_FORMAT_BMP
3 G_FORMAT_EMF
4 G_FORMAT_WMF
5 G_FORMAT_JPG
6 G_FORMAT_GIF
7 G_FORMAT_TIF
8 G_FORMAT_PNG
9 G_FORMAT_EMFPLUS
10 G_FORMAT_EMFPLUSDUAL

Parameters

hImg

Identifies the image.

History

Version Description
R2018 G_FORMAT_EMFPLUS, G_FORMAT_EMFPLUSDUAL
R2017 Second Parameter.
3.6.0 New

id-324747