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
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.
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.