Get Image Type

 

The GetImageFormat function/method of the BiDIB DLL/OCX retrieves the format of the image file.

 

[C++]

 

/* Detecting the format type of an image*/

 

#include “BiDIB.h”

 

int iFormat = GetImageFormat(_T(“C:\\Images\\Test.tif”));

 

[C#]

 

/* Detecting the format type of an image*/

 

short iFormat;

 

iFormat = BiDIB.GetImageFormat(“C:\\Images\\Test.tif”);