ImageFileReader::MatchFormat

ImageFileReader::MatchFormat
virtual bool MatchFormat(File* file, UByte* header = 0, UPInt headerSize = 0) const = 0;
Description

MatchFormat detects whether file data in the provided header, or beginning at the current location File pointer, matches the supported file formats. Leaves internal File position unchanged.

Parameters
Parameters 
Description 
File* file 
Pointer to the File that is matched. 
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. 
Return Value

A Boolean value of true if the image file format is one of the supported file formats, ImageFileFormat, and false otherwise.