Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GDI+ Save as non VFP Standard TIFF file
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01128486
Message ID:
01128639
Views:
23
Are you able to change encoding for tiff files?

>I also notice that the GDIpSaveImagetoFile Dll takes the clsidEncoder parameter and this parameter can be found in the gdiplus.h file as
>#define EncoderValueCompressionCCITT3 3
>#define EncoderValueCompressionCCITT4 4
>#define EncoderValueCompressionRle 5
>
>
>
>>Just curious, did you try it yourself? I have never been able to get it to work with tiff files unless I do not specify the compression, colordepth, saveflag.
>>
>>
>>>In the GDI image.savetofile() method you gave 3 parameter
>>>TIFF
>>> compression, colordepth, saveflag
>>>
>>>
>>>
>>>
>>>>My second try on this topic:
>>>>
>>>>From VFP Help on the ReportListener.OutputPage
>>>>
>>>>The ReportListener class's native ability to provide images of pages as various file types is limited to some default settings for each image type it supports. In the case of TIFFs, ReportListener provides compressed TIFFs for performance. However, you are not limited to the settings provided in the native implementation. You can give the ReportListener a GDI+ graphics handle and, in the OutputPage method, request that it render a page to this device. You can then save the result to an image file with non-default specifications. Visual FoxPro supplies a class library to help you perform this and other GDI+-related tasks. For more information, see GDI Plus API Wrapper Foundation Classes
>>>>

>>>>
>>>>I need a little more info on how to create a TIFF file with different compression ratio and other specific settings. I cannot find any sample anywhere.
>>>>
>>>>I cannot use a third party tool, I need to do this with VFP9 (the help says it can be done) The VFP help is not usefull at all.
>>>>
>>>>
>>>>Please Help!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform