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(“C:\\Images\\Test.tif”);

 

[VB]

 

‘ Detecting the format type of an image

 

Dim iFormat As Integer

Dim BiDIBobj as Object

 

Set BiDIBobj = CreateObject("BIDIB.BIDIBCtrl.1")

 

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

Set BiDIBobj = Nothing

 

[C#]

 

/* Detecting the format type of an image*/

 

short iFormat;

 

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