SWAP 2 Images

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
davidng
Posts: 6
Joined: Tue Jul 12, 2011 6:37 pm

SWAP 2 Images

Post by davidng » Wed Nov 16, 2011 11:48 pm

Hi everyone,

I am looking sample code to swap 2 images.

For example, When I select an image & press HOME key, the application will this image with 1st image in thumbnail viewer.

Thank you in advance for your thought & help on this.

David

davidng
Posts: 6
Joined: Tue Jul 12, 2011 6:37 pm

Re: SWAP 2 Images

Post by davidng » Thu Nov 17, 2011 12:09 am

Hi,

Just want to clarify 1 thing: In a Thumbnail Viewer, I like to SWAP 2 images in Thumbnail Viewer.

Thanks.

Alex
Site Admin
Posts: 1464
Joined: Thu Jul 10, 2008 2:21 pm

Re: SWAP 2 Images

Post by Alex » Thu Nov 17, 2011 8:50 am

Hello David,

You need to use the Swap method of the ImageCollection class:

Code: Select all

ThumbnailViewer1.Images.Swap(0, 1)
Best regards, Alexander

davidng
Posts: 6
Joined: Tue Jul 12, 2011 6:37 pm

Re: SWAP 2 Images

Post by davidng » Thu Nov 17, 2011 5:58 pm

Hi Alex,

It works. Thank you very much.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest