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
 Get best existing FileIcon?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeterPanino

300 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!

xequte

4590 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).

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