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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, April 10, 2006 12:39:43 AM(UTC)

Murthy  
Murthy

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

 

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, April 10, 2006 1:50:53 AM(UTC)

Murthy  
Murthy

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)

Amin  
Amin

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.

File Attachment(s):
sample2.zip (63kb) downloaded 45 time(s).
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#4 Posted : Monday, April 17, 2006 1:30:43 AM(UTC)

Murthy  
Murthy

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)

Amin  
Amin

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.

File Attachment(s):
sample2FourBit.zip (29kb) downloaded 44 time(s).
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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-2024, Yet Another Forum.NET
This page was generated in 0.088 seconds.