abdellahmehdi 0 Posted May 30, 2022 (edited) How to use .icon in delphi instead of .bmp Edited May 30, 2022 by abdellahmehdi Share this post Link to post
Anders Melander 1783 Posted May 30, 2022 You can't - at least not without writing some code to open the icon and select from the images within. Here are some links: https://stackoverflow.com/a/4286601/2249664 https://stackoverflow.com/questions/8112953/how-do-i-load-icons-from-a-resource-without-suffering-from-aliasing An icon is actually a container format which contains several sub-icons, in different sizes and color depths. If you for example load an icon into a TImage then one of the sub-images within will be selected based on a static rule. I believe it will select one of the 32x32 variants and I think it's Windows doing the selection. 1 Share this post Link to post
Remy Lebeau 1394 Posted May 31, 2022 18 hours ago, abdellahmehdi said: How to use .icon in delphi instead of .bmp I'm sorry, but your question is WAY too vague. You need to be much more specific. What kind of .ico do you have? How exactly do you want to use it instead of .bmp? What kind of UI control do you want to display it in? 1 Share this post Link to post
abdellahmehdi 0 Posted May 31, 2022 Just now, Remy Lebeau said: I'm sorry, but your question is WAY too vague. You need to be much more specific. What kind of .ico do you have? How exactly do you want to use it instead of .bmp? What kind of UI control do you want to display it in? delphi 11 vcl wind .. Share this post Link to post
Remy Lebeau 1394 Posted May 31, 2022 (edited) 26 minutes ago, abdellahmehdi said: delphi 11 vcl wind .. I'm sorry, but that didn't answer ANY of my questions. Try again. Where EXACTLY are you currently using a .bmp right now, and why do you want to change it to .ico? Edited May 31, 2022 by Remy Lebeau Share this post Link to post