Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, October 2, 2011 8:06:47 PM(UTC)


Groups: Registered
Posts: 71


I am converting dicom image to bmp image using
Image im=cell.GetCellImage();
After converting it i am trying to load the same image using
 RasterCodecs codecs = new RasterCodecs();
 RasterImage image = codecs.Load(@"c:\test.bmp", 0, CodecsLoadByteOrder.BgrOrGray, 1, 1);

But codecs.load method showing error i.e invalid file format.

Can you please check where's the problem?


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, October 3, 2011 4:56:09 AM(UTC)

Adnan Ismail  

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 to load BMP image file, you need to add reference or deploy the Leadtools.Codecs.Bmp.dll file. And include it in your application EXE folder.
Please refer to the help topic "Files to be Included with Your Application" to know what DLLs you need to add to your application.

If adding reference to the BMP codec DLL does not solve the problem, please send an email to support@leadtools.com with the following details:
1- Your LEADTOOLS toolkit serial number. (Do NOT post it here)
2- A sample BMP file in a ZIP or RAR archive so I can check it for you.
3- A link to this forum post.
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.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.040 seconds.