How to update an already displayed Thumbnail?

Discussions about document viewing.
Post Reply
jriddell
Posts: 5
Joined: Thu May 19, 2011 2:09 am

How to update an already displayed Thumbnail?

Post by jriddell » Thu May 19, 2011 2:22 am

Howdy.

I am using GdPicture.NET Document Imaging SDK Ver. 7.4.6 (29 April 2011) running under Vs 2010.

I am writing your basic Document Viewer/editor for in-house use with your basic scrolled Thumbnails on the left and big GdViewer in the middle.

Suppose I have 5 images loaded. All 5 thumbs showing in the ThumbnailEx.
And my user is viewing thumb #3.

If the user does something where I want to change the "bitmap"/thumb that is displayed for thumb #3, how do I do that?

I see that thumbs have both ImageIds and indexes; and I can remove a thumb at a given index.
But if I do that, thumb #3 is removed and all others "move up". I don't want that.

I was looking for an API call like:

Code: Select all

 replaceImageAtGivenIndex( imageId as integer, index as integer)
Or maybe something like:

Code: Select all

 AddItemFromGdPictureImageAndReplaceAtGivenIndex( imageId as integer, index as integer)
I've tried:

Code: Select all

 SwapItemsBitmap(index1 as integer, index2 as integer) 
but it doesn't seem to do what I need.

How do I accomplish this???

thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How to update an already displayed Thumbnail?

Post by Loïc » Thu May 19, 2011 3:05 pm

HI,

Currently we do not offer other way that:

- Insert new thumbnail
- Remove existing thumbnail
- Swap 2 thumbnails together.

We will investigate for a kind of replaceImageAtGivenIndex method in a GdPicture 8 release, but this will be done within 2 months.

Kind regards,

Loïc

jriddell
Posts: 5
Joined: Thu May 19, 2011 2:09 am

Re: How to update an already displayed Thumbnail?

Post by jriddell » Thu May 19, 2011 4:59 pm

ok.

Could you more fully explain the "swap 2 thumbnails together"?

Will this somehow support the idea of updating the 3rd of 5 thumbnails with a different image WITHOUT reordering the thumbnails??

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How to update an already displayed Thumbnail?

Post by Loïc » Fri May 20, 2011 4:30 pm

Hi,

IE:

Code: Select all

Object.SwapItemsBitmap(1, 2)
Please have a look on the reference guide in the ThumbnailEx function. There is few functions are they are all documented.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest