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 add own image format thumb to ImageEn?

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
supersk Posted - Nov 12 2019 : 21:32:25
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?
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 13 2019 : 15:56:21
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
supersk Posted - Nov 12 2019 : 22:09:29
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?
xequte Posted - Nov 12 2019 : 21:52:24
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
supersk Posted - Nov 12 2019 : 21:35:06
besides,in the ImageEnFolderMView how to display my own image thumb?