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
 TIEFileDlgPreviewEvent
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graphman

259 Posts

Posted - Dec 04 2013 :  13:04:01  Show Profile  Reply
TIEFileDlgPreviewEvent = procedure(Sender:TObject; Viewer:TObject; FileName:string; ParamsOnly:boolean) of object;


How to change an object type of Viewer from TImageEnVect to TImageEnMView?

There is unsupported ImageEn format.

I can tranform this file to multipage TIFF file and want to view this file in preview.
But in this case Viewer is TImageEnVect only.

xequte

38616 Posts

Posted - Dec 04 2013 :  15:42:16  Show Profile  Reply
Hi

The Viewer will always be a TImageEnMView when previewing multi-frame files (videos, DCX, animated gifs and multipage TIFFs) and a TImageEnVect for all other types.

However you can specify that your type is a multi-image type by adding its extension to IEGlobalSettings().PreviewAdditionalMultipageExts:

http://www.imageen.com/help/TIEImageEnGlobalSettings.PreviewAdditionalMultipageExts.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graphman

259 Posts

Posted - Dec 05 2013 :  16:03:55  Show Profile  Reply
Can I add unsupported format?
Go to Top of Page

xequte

38616 Posts

Posted - Dec 09 2013 :  14:19:04  Show Profile  Reply
You can specify any extension for PreviewAdditionalMultipageExts, but then you need to ensure that you handle the OnPreviewFile event.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graphman

259 Posts

Posted - Dec 09 2013 :  15:58:27  Show Profile  Reply
Yes, of course.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: