LEADTOOLS Support
Imaging
Imaging SDK Questions
Please Help me ! I get "Invalid File Format" error when trying to load jpeg/bmp or any ima
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, September 13, 2009 5:51:00 AM(UTC)
Groups: Registered
Posts: 1
I get error when loading images. My code is below.<br>Development environments is;<br>
Visual Studio 2008<br>
Windows Vista Ultimate<br>
Leadtools Imaging SDK 16 (16.081224.095818)<br><br>
CSharp Code:<br>
Leadtools.Codecs.RasterCodecs.Startup();<br>
RasterCodecs class Leadtools.Codecs.RasterCodecs codecs = new Leadtools.Codecs.RasterCodecs();<br>
Leadtools.RasterImage image=null;<br>
try<br>
{<br>
image = codecs.Load("g:\\temp1\\akcakale-108.jpg");<br>
}<br>
catch (Exception ex)<br>
{<br>
MessageBox.Show(ex.Message);
}<br>
Thanks<br>
#2
Posted
:
Monday, September 14, 2009 1:31:19 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
'Invalid file format' error messages are normally generated due to a missing DLL file which is required to load specific image format. For example, if you want to load Jpeg image file, you need to add reference to the LEADTOOLS.Codecs.Cmp.dll file. For Bmp images the LEADTOOLS.Codecs.Bmp.dll DLL needs to be referenced in the application.
For a listing of the exact DLLs needed when deploying your application, refer to "Files To Be Included With Your Application" topic in our help file.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Please Help me ! I get "Invalid File Format" error when trying to load jpeg/bmp or any ima
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.