Loading File Codecs

By default, LEADTOOLS loads several fixed codecs and several cached codecs. The fixed codecs are FAX, CMP, TIF, PNG, BMP.

Use the PreloadCodecs method to specify the file format codecs you want LEADTOOLS to load. If the codecs parameter is empty, all file codecs LEADTOOLS can find will be loaded and LEADTOOLS will determine the order in which the files will be used.

The codecs parameter is in the form xyz, yuv ... where Xyz are the 3 letters describing the file codec as in Leadtools.Codecs.Xyz.dll. For instance, if the codecs parameter is BMP,TIF,CMP, then the following codecs will be loaded in the following order:

  1. Leadtools.Codecs.Bmp.dll
  2. Leadtools.Codecs.Tif.dll
  3. Leadtools.Codecs.Cmp.dll

The FastFileInfo allows you to determine whether a file will be rejected if the signature does not match one of the known file format signatures. As a result, the file format DLLs will not be loaded or called unnecessarily. Use the following method to specify which file format codecs LEADTOOLS should never load:

IgnoreCodecs
It is important to note that PreloadCodecs must be called prior to loading, saving or getting information on a file. In addition, PreloadCodecs must be called before calling IgnoreCodecs for IgnoreCodecs to work properly.

Help Version 23.0.2024.8.27
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.