Invalid File Format and Feature not Supported Raster Exception Codes

LEADTOOLS uses a specific codec or set of codecs (Leadtools.Codecs.???.dll) to load or save each supported format. Without the required codec(s), it cannot load or save the respective format. A list of codecs required to load or save an image as each file format are listed in the File Formats section of the Files To Be Included With Your Application topic.

When attempting to load or save images, if the codecs required for the specified format cannot be loaded, LEADTOOLS will throw a RasterException. The Code property will be set to a RasterExceptionCode = -9 ("Invalid File Format") or -16 ("Feature not Supported"). To fix exceptions with these codes, copy the necessary codecs to the application folder, so the codec assemblies can be loaded when necessary.

One method to automatically copy the required codec assemblies is to add them to the project as references with the Copy Local property set to true. By setting the Copy Local property to true, Visual Studio will copy the referenced assembly to the output folder when the application is built.

Help Version 20.0.2018.3.2
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Imaging, Medical, and Document