ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to Swap Pages in a Multi-Page Tiff
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stwizard

USA
46 Posts

Posted - Sep 18 2012 :  05:08:36  Show Profile  Reply
Greetings All,

Delphi 5.1 (Preparinging to convert to Delphi XE, once I have switched out Pegasus ImagXPress for ImageEn)

Using a TImageEnMView to display thumbnail pages in a multi-page tif and TImageEnVext to display the individual pages.

I need to give the user the ability to swap pages in a multi-page tiff. Generally it is to swap pages 2 and 3 so that page 3 now becomes page 2 and page 2 becomes page 3.

Does ImageEn have a built-in function to do this? If not does anyone have any code example on how to go about doing this?

Thanks,
Mike

Is something like this possible in

w2m

USA
1990 Posts

Posted - Sep 18 2012 :  06:12:33  Show Profile  Reply
Take a look at TIETIFFHandler for MovePage... or just move the frame. There is a TIETIFFHandler demo in samples folder.

TIETIFFHandler.MovePage

Declaration

procedure MovePage(CurIndex, NewIndex:integer);


Description

Moves specified page to a new position.

or just move the frame:

TImageEnMView.MoveImage


Declaration

procedure MoveImage(idx:integer; destination:integer);

Description

Moves an image from the index position idx to destination position.
If the destination index is equal to or greater than the image count, the idx image is moved to the position immediately after the last image.

Example
// exchange the third and second image
// remember that the first image has an index of 0 so use 2, 1 not 3,2
ImageEnMView1.MoveImage(2, 1);


William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

stwizard

USA
46 Posts

Posted - Sep 20 2012 :  06:34:24  Show Profile  Reply
Exactly what I hoping for.

Thanks,
Mike
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: