This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, April 10, 2006 12:39:43 AM(UTC)
Groups: Registered
Posts: 6
Hi,
I am using LeadTool licensed version 12. I unlocked the support for gif format using
m_Lead.UnlockSupport(L_SUPPORT_GIFLZW, (LPCTSTR)sL_KEY_GIFLZW);
I could read any gif images.I have problem in saving my image in gif format.
I could save in many different formats. Using the API
m_Lead.Save( m_FileName,FILE_TIF, m_iColors, iQuality, SAVE_OVERWRITE); Works fine and many other formats (FILE_BMP, FILE_EPS, FILE_JFIF, etc.,)also works
Except
m_Lead.Save( m_FileName,FILE_GIF, m_iColors, iQuality, SAVE_OVERWRITE);
Is there any problem in saving in LZW Compression format in version 12 ?
Is there anything specific setting that i have to do for saving LZW compressed image ?
Thanks for the help
#2
Posted
:
Monday, April 10, 2006 1:50:53 AM(UTC)
Groups: Registered
Posts: 6
Hi,
For the above problem i did not mentioned what is happening !
Actually i am not getting any error as such. All the return codes are fine, and gif file created without proper data. when i opened the file, i could see only black color.
I am sending proper m_iColors and iQuality information to save function.I gone thro' the Lead tool help and tried various options, no success.
Thanks
Murthy
#3
Posted
:
Wednesday, April 12, 2006 9:24:48 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Murthy,
I tried the load an image and save it using the MFC demo of our ActiveX
12.1 control, and it worked. I'm attaching the resulting file.
What is the version of 12 you have? I used build 12.1.0.61 of ltfil12n.DLL and lfgif12n.dll.
Also, what value do you use for Bits Per Pixel? I used 8.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#4
Posted
:
Monday, April 17, 2006 1:30:43 AM(UTC)
Groups: Registered
Posts: 6
Thanks,
It is working ! And now having another problem
It is Color info that i was sending wrong to save function.
m_Lead.Save( m_FileName,FILE_GIF, m_iColors, iQuality, SAVE_OVERWRITE);
It is not working if m_iColors = 4.
i.e., If an image is 4 bits per pixel or a 16-color image.
I am interested in gif format only. i am using version 12.1
Regards
Murthy
#5
Posted
:
Monday, April 17, 2006 7:31:04 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Murthy,
Even with 4-bit images, LEADTOOLS 12.1 saves correct GIF. I'm also attaching a sample file saved using our MFC OCX demo.
If your build (version info) is 12.1.0.61, try to create a small test
program that shows what you're doing (not your full application) and
either post it here or send it to
support@LEADTOOLS.com
Important note:
If you post or email files, please put them in a ZIP file first.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
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.