LEAD Technologies, Inc

Loading File Codecs

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

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.

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.