This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 6, 2008 4:43:49 AM(UTC)
Groups: Registered
Posts: 2
I am using ver12 main with Powerbuilder.
But I can not save a image to jpg format.
ole_object.object.save(filename, format, BitperPixal, Qaulity, Modify)
I use the above syntax to save image as a bmp, bit not jpg.
Please help
Thank
#2
Posted
:
Thursday, March 6, 2008 8:55:12 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Are you getting any errors when you make this function call? Check the return code.
Does the file not get saved to disk or does it seem corrupted?
What are the actual parameters you're passing? Giving properties without values doesn't give me enough information to know what might be happening.
#3
Posted
:
Thursday, March 6, 2008 8:58:29 AM(UTC)
Groups: Registered
Posts: 2
What is the value for format parameter to be passed for jpg format?
#4
Posted
:
Sunday, March 9, 2008 5:57:55 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
To save JPEG files, use the value of FILE_JFIF in the file
format parameter. The numerical value of this constant is 10.
Also, please note that you will need to set the quality
factor (Q factor). This is a number that determines the degree of loss in the
compression process. You can set a value from 2 to 255, where 2 is the highest
quality and 255 is the most compression. For more information, read the help
topic "Compression Quality Factors".
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.