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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to Swap Pages in a Multi-Page Tiff

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
stwizard Posted - Sep 18 2012 : 05:08:36
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

2   L A T E S T    R E P L I E S    (Newest First)
stwizard Posted - Sep 20 2012 : 06:34:24
Exactly what I hoping for.

Thanks,
Mike
w2m Posted - Sep 18 2012 : 06:12:33
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