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
 Get best existing FileIcon?

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

Size 
UserName:
Password:
Mode 
Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List
   
Message 

 

Smilies
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
PeterPanino Posted - Jul 10 2019 : 10:10:54
Hello, I use this code:

iexShellThumbnails.WindowsGetFileIcon(TargetExeFilePath, ImageEnView1.IEBitmap, SxConst.SHIL_JUMBO);


However, if the file does not have a jumbo-size icon then I get an ugly distorted image, for example:



So how can I get the best-quality EXISTING FileIcon for an .exe file?

Is there a parameter to automatically select the best quality icon? If not, then I suggest you implement one. Thank you!
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 10 2019 : 19:48:47
Hi Peter

If you specify SHIL_JUMBO then it should be returning the best available icon for the file (up to 256x256).

Nigel
Xequte Software
www.imageen.com