| FreeImage Documentation - Contents Previous Next Up | ||||||||||||||||||||||||||||
Filetype functions
SubsectionsFreeImage_GetFileType
FREE_IMAGE_FORMAT FreeImage_GetFileType(FreeImageIO *io, fi_handle handle, int size);
Investigates the given bitmap and returns the type of it. FreeImage_GetFileType can return the following values:
Bitmap
Windows/OS/2 Bitmap
FIF_ICO
Windows Icon
FIF_JPEG
JPEG/JIF
FIF_KOALA
C64 KOALA
FIF_PBM
Portable Bitmap
FIF_PCD
Kodak PhotoCD
FIF_PCX
PCX
FIF_PGM
Portable Greymap
FIF_PNG
Portable Network Graphics
FIF_PPM
Portable Pixmap
FIF_RAS
Sun Rasterfile
FIF_TARGA
Targa
FIF_TIFF
TIFF
FreeImage_GetFileTypeFromHandle
FREE_IMAGE_FORMAT FreeImage_GetFileTypeFromHandle(const char *filename, int size);
Investigates the given bitmap and returns the type of it using an abstract i/o structure and a fi_handle. FreeImage_GetFileTypeFromExt
DLL_API FREE_IMAGE_FORMAT FreeImage_GetFileTypeFromExt(const char *ext);
Investigates the given file extension and returns the corresponding format. For example "bmp" would return FIF_BMP.
Copyright 2000 Floris van den Berg (freeimage@wxs.nl) |