This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
cpav  
#1 Posted : Sunday, March 16, 2008 6:02:19 PM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Hi,

We use GM 4.5 and a BitmapViewer control so we can see mutipage tiff files. Lets say we load a multipage tiff file with 10 pages and we see the 3rd page.

How can i know that i see the 3rd page?

Is there any way that tells me which page i am viewing at moment?

cpav

Alex Kon  
#2 Posted : Sunday, March 16, 2008 7:53:19 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hi,

Hm... The BitmapViewer control itself always works with a single instance of Aurigma.GraphicsMill.Bitmap class - it knows nothing about the source of the image.

So you should implement this by yourself. Just save somewhere the number of the currently loaded TIFF frame and use it when necessary.

cpav  
#3 Posted : Sunday, March 16, 2008 8:34:30 PM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Hm, i see.

Use .Tag again.

Anyway thanks, i was just thinking that having a property to store the current page number would be a good idea.

Alex Kon  
#4 Posted : Tuesday, March 18, 2008 8:58:38 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hi,

Why ".Tag"? I think it is not the only way in your case. You may just use some class variable for that.

We have no such property because BitmapViewer is a really some sort of "universal soldier". This control is used in multiple scenarios and far not all of them include handling multipage formats.

Edited by user Tuesday, March 18, 2008 9:05:18 PM(UTC)  | Reason: Not specified

cpav  
#5 Posted : Tuesday, March 18, 2008 9:23:22 PM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Well,

in our scenario it is more complicated, so we use .Tag, we have to store many things for every one thumbnail in memory.

But it would be a nice idea to have a property for this reason, so multipage formats can have its property > =1 and all other formats could be by default =1.

Users browsing this topic
Guest (3)
Forum Jump  
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.