You can speed up most load operations by passing a FILEINFO structure to the load function.
The structure can contain:
|The complete information||Obtain the complete information by calling L_FileInfo.|
|Only the file format||FILEINFO.uStructSize = sizeof(FILEINFO)
FILEINFO.uFlags = FILEINFO_FORMATVALID
FILEINFO.Format = FILE_XXX value describing the source file.
|Only the file name||FILEINFO.uStructSize = sizeof(FILEINFO)
FILEINFO.uFlags = FILEINFO_NAMEVALID
FILEINFO.Name = name describing the source file.
This last mode is helpful when you are loading a file from a stream rather than a file, but you know the type of file you have. This is particularly useful if the source file format does not have an easily identifiable file signature. In this case, LEADTOOLS will use the file extension to determine the most likely source file format.
NOTE: Another way to speed up the load is to use the filter data mechanism described in the Using Filter Data to Speed up Loading Large Files topic.
Medical Web Viewer .NET