Loading...

How do I safely Load, Rotate & Save a TIFF file?

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

How do I safely Load, Rotate & Save a TIFF file?

Postby AnthonyV » Fri Jul 13, 2007 9:03 pm

I expect that the sequence would be:

object.LoadFromFile (sFileName)
object.Rotate (%RotateContant%)
object.SaveAsTiff (sFileName, nModeCompression, nColorDepth)

My question is: What should I set the Compression and ColorDepth to. Is there a way that I can determine what the original values were? Does the control remember and retain the original value?

Anthony
AnthonyV
 
Posts: 3
Joined: Fri Jul 13, 2007 6:43 pm

How can I determine the original compression type of a TIFF

Postby AnthonyV » Mon Jul 16, 2007 10:07 pm

I am splitting a multipage tiff file and I want to save the resulting TIFF files in the exact same format as they were originally saved. Is there any way to find out the compression type of the original file?

Anthony
AnthonyV
 
Posts: 3
Joined: Fri Jul 13, 2007 6:43 pm

Postby Loïc » Tue Jul 17, 2007 4:42 pm

Hi,


Code: Select all
Is there any way to find out the compression type of the original file?



Unfortunately there is no implemented method into the windows api to do that.
You can also check some exif tag value of the native image if exist.


Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby AnthonyV » Tue Jul 17, 2007 5:08 pm

Okay I understand.

Thanks for the reply.
AnthonyV
 
Posts: 3
Joined: Fri Jul 13, 2007 6:43 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron