ImageFileFormat DetectFormat(ImageFileReader** preader, File* file, UByte* header = 0, UPInt headerSize = 0);
DetectFormat detects image file format and returns its type, also filling in a preader interface that can be used to load it. If ImageFile_Unknown is returned, file data isn't supported by any of the specified handlers.
Parameters |
Description |
ImageFileReader** preader |
Pointer to the image file read handler, ImageFileReader. |
File* file |
Pointer to the image file that is read. |
UByte* header = 0 |
Pointer to the header data in the image file. |
UPInt headerSize = 0 |
The size of the buffer which contains the image header data. |
The ImageFileFormat of the image.