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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Get best existing FileIcon?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


326 Posts

Posted - Jul 10 2019 :  10:10:54  Show Profile  Reply
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!


5237 Posts

Posted - Jul 10 2019 :  19:48:47  Show Profile  Reply
Hi Peter

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

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: