GdViewer Flashing when change the index of multipage file

Discussions about document viewing.
Post Reply
steviessp
Posts: 2
Joined: Tue Jun 26, 2012 4:22 pm

GdViewer Flashing when change the index of multipage file

Post by steviessp » Wed Aug 08, 2012 11:36 am

Hi, I have the next scenario: i have a thumbnail that can contain various files and each file can be multipage. I need to show each page in a GdViewer. So what i do is keep an index where am i in my thuimbnail and when i want to show it in gdViewer just use GdViewer.DisplayPage(int number_of_desired_page), previously made GdViewer.DisplayFromFile(string fileName). The problem is that if i don't specify gdViewer.DisplayFromFile(string fileName), it doesn't change the picture, and if i do, it show the first page of the file, and after that shows the desired page and it's like flashing. I tryied to pass just the fileName to the GdViewer and use GdViewer.DisplayNextPage() , but doesn't change it. Any ideas what am i doing wrong ?! :?:

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: GdViewer Flashing when change the index of multipage fil

Post by SamiKharma » Wed Aug 08, 2012 4:20 pm

Hi,

I could not really reproduce the problem you had, but here is the best way of displaying files that i am sure would eleminate your problem:
1. Load image into a GdPictureImaging object creating a GdPicture image from the file
2. Check if it is a multipage image
3. if it is, select the page you want via the function TiffSelectPage
4. Display the GdPictureImage in the viewer.

Best Regards,
Sami Kharma
GdPicture Support

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests