TIF File Properties & Control
We have just begun working with the Dataflex Graphics Library 3.03 with DF 19.1, it looks great (thanks Vincent) and we have a few basic questions.
Our first task is to replace an older control used to look at incoming faxes stored as multi-page TIF files. We are using the cImageContainer to successfully view, rotate, zoom in/out, and retrieve properties. We have failed however to find examples and/or figure out how to do the following:
[B]PAGE CONTROL[/B] (to deal with multi-page images)- Retrieve Total Page Count
- Retrieve Current Page #
- Go To Next Page
- Go To Previous Page
[B]DISPLAY CONTROL[/B] (to deal with visual inconsistencies inherent in fax transmissions)- Increase Image Brightness
- Decrease Image Brightness
Our guess from HELP is that this involves the USE of wrapper classes such as cGDIImage, however which classes and how to begin to use them escapes us.
Re: TIF File Properties & Control
Jim,
I've not tested while writing this reply but I am quite sure the multi page TIFF files are similar to animated GIFs and after loading the piFrameCount will be set.
I have no experience with in- or decrease of the image brightness but I think you can do this as you can make many changes via the GDI+ methods.
Re: TIF File Properties & Control
Thanks for the thought Vincent. After spending a few more hours digging into this possibility using example source code for bitmaps it appears that the ConfigureMultiFrameDisplay procedure within the cGDIImage class does not properly set piFrameCount or other properties when a multi-page TIF(F) file is the source object.
Please let me know if we've missed something important in the examples or help. Getting and setting the following multi-page TIF(F) image properties is our goal; any clues you can provide would be greatly appreciated:
Get Total # of Pages
Get Current Page Viewed
Set & View Next Page
Set & View Previous Page
Set & View New Current Page by #
Note: Forum rules blocked example TIF file upload attempt. Rename to (allowable) TIFF returned image x/y size error on re-upload attempt. I am happy to directly email you an example TIF if you wish.
Re: TIF File Properties & Control
Jim,
Perhaps just zip up the original TIF file to attach.
2 Attachment(s)
Re: TIF File Properties & Control
Thanks for the solution Stephen. Attached are:
- a simplified actual 5-page received fax in TIF format (zipped), plus,
- a JPG snip of DF19.1 utilizing the very old (!) Image Viewer control we are looking to replace with Dataflex Graphics Library controls
Multi-page TIF files are still with us. And to deal with them we will need to be able to deal with individual pages and with contrast/brightness quality issues. We are hoping that the Dataflex Graphics Library is the answer. Thanks!
Re: TIF File Properties & Control
Re: TIF File Properties & Control
Jim,
I found the problem. The SelectNextFrame method work only on animated GIF files. I've added a routine to advance to the next or previous page of a multi page TIFF file to the class.
I hope to be able to update the Graphics Library installer this afternoon
Re: TIF File Properties & Control
Jim, others,
New version 3.0.4 now available for download via your Data Access ID.
Re: TIF File Properties & Control
Thanks Vincent, I'll give this a try and let you know. In appreciation,
Re: TIF File Properties & Control
Working great Vincent. Thank you