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 : Thursday, March 6, 2008 4:43:49 AM(UTC)
patricklee

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
 

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 : Thursday, March 6, 2008 8:55:12 AM(UTC)

GregR  
GregR

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)
patricklee

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)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,028

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.

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