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 add own image format thumb to ImageEn?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

supersk

99 Posts

Posted - Nov 12 2019 :  21:32:25  Show Profile  Reply
Using IEFileFormatAdd I can add my own custom file format to ImageEn, but when you use the Open/Save dialog or TImageEnFolderMView, it don't display thumb. How to add my own image thumb?

supersk

99 Posts

Posted - Nov 12 2019 :  21:35:06  Show Profile  Reply
besides,in the ImageEnFolderMView how to display my own image thumb?
Go to Top of Page

xequte

38610 Posts

Posted - Nov 12 2019 :  21:52:24  Show Profile  Reply
Hi

It should do that if you have specified a ReadFunction for your added format. Please show me your code.

Have you tried the "Custom File Format" demo (in the Input/Output folder)?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

supersk

99 Posts

Posted - Nov 12 2019 :  22:09:29  Show Profile  Reply
I didn't find "Custom File Format" demo,but i tried "\Demos\InputOutput\FileFormatPlugins\FPlug.dpr" , it didn't handle the thumbnail. My own image format coming from the third party, it need encrypt/decrypt processing, so I can't give you as a public format. I want to know in the ImageEnFolderMView how to display my own image thumb? Which event can process thumb reading?
Go to Top of Page

xequte

38610 Posts

Posted - Nov 13 2019 :  15:56:21  Show Profile  Reply
Hi

Yes, that is the correct demo. Once you register the UNC format, it is included in TImageEnFolderMView and shows a thumbnail.




In the ImageEn Open dialog, the format is listed under "All Images" and shows a preview. It does not give a thumbnail there because it is an Explorer view (you would need to add a thumbnail handler
for your format to Windows, for that).

The ReadFunction you specify tells ImageEn how to load the format. It does not differentiate between thumbnails and full size images. If you want specific handling for smaller size loading you can add your own property to Params.Dictionary:

https://www.imageen.com/help/TIOParams.Dict.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: