#include "l_bitmap.h"

L_LTFIL_API L_INT L_IgnoreFilters(pszFilters)

Specifies which file filters LEADTOOLS should NEVER load, even if present.


L_TCHAR* pszFilters

Character string containing which filters should be ignored and therefore not loaded. pszFilters has the same format as in L_PreLoadFilters.


Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.


Use this function if you never want to load a particular file filter(s).

The files specified in L_PreLoadFilters take priority over the files specified in L_IgnoreFilters. This means that if the filter is present in pszFilters for both methods, then the filter will be loaded and will not be ignored.

In case the current ignored filters list should be changed, call the L_GetIgnoreFilters function before calling this function.

Required DLLs and Libraries


Win32, x64, Linux.

See Also




This example tells LEADTOOLS not to load the CMP filter.
Ignore CMP filter, never load CMP or JPEG files

L_INT IgnoreFiltersExample(L_VOID) 
   L_INT nRet; 
   nRet = L_IgnoreFilters(TEXT("CMP")); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 

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

LEADTOOLS Raster Imaging C API Help