public string PreloadCodecsList { get; } public String getPreloadCodecsList() public:property String^ PreloadCodecsList {String^ get();}
PreloadCodecsList # get (RasterCodecs)
The current preload codecs list. The default value is FAX,CMP,TIF,PNG,BMP.
Use this property before calling PreloadCodecs if you wish to get the current setting for the preload codecs list before changing it.
The preload codecs list contains the list of fixed and cached codecs.
The fixed codec count can be obtained from FixedPreloadCodecs.
The cached codec count can be obtained from CachedPreloadCodecs.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;using Leadtools.Svg;public void PreloadCodecsExample(){RasterCodecs codecs = new RasterCodecs();string srcFileName1 = Path.Combine(LEAD_VARS.ImagesDir, "Image1.j2k");string srcFileName2 = Path.Combine(LEAD_VARS.ImagesDir, "Image1.cmp");// display the original values before changing themDebug.WriteLine("PreloadCodecList - {0}", codecs.PreloadCodecsList);Debug.WriteLine("FixedPreloadCodecs - {0}", codecs.FixedPreloadCodecs);Debug.WriteLine("CachedPreloadCodecs - {0}", codecs.CachedPreloadCodecs);Debug.WriteLine("IgnoreCodecList - {0}", codecs.IgnoreCodecsList);// preload only the j2k filter and ignore the cmp filtercodecs.PreloadCodecs(1, 1, "j2k");codecs.IgnoreCodecs("cmp");// try to get info on a j2k imageCodecsImageInfo info = codecs.GetInformation(srcFileName1, false);Debug.WriteLine("j2k - Width: {0}, Height {1}", info.Width, info.Height);// try to get info on a cmp imagetry{info = codecs.GetInformation(srcFileName2, false);}catch{Debug.WriteLine("GetInformation for cmp failed - sample success!");}// Clean upcodecs.Dispose();}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
