256 colors icon getting modified without a reason
-
I took an image from my MSN Messenger 6 (I use XP and in my user files root it is somewhere in Application Data as a PNG image with a .tmp extension), converted it, using IrfanView 3.80, to a 256-colors 96x96 pix icon (ICO). The colors were still really good and the same as the PNG. But when I put the ICO into my resouce stuff and load it into an CImageList, the palette is being ignored and my icon gets really 4-bits like. How to avoid this?!
-
I took an image from my MSN Messenger 6 (I use XP and in my user files root it is somewhere in Application Data as a PNG image with a .tmp extension), converted it, using IrfanView 3.80, to a 256-colors 96x96 pix icon (ICO). The colors were still really good and the same as the PNG. But when I put the ICO into my resouce stuff and load it into an CImageList, the palette is being ignored and my icon gets really 4-bits like. How to avoid this?!
-
VisualStudio is a bit fussy, and if you open it from within the resource editor it will convert it automatically - you have to sneak it in the back (just copy over the existing file) and make sure not to open it from within VisualStudio itself.
I am also getting the similar kind of problem , i am using VC6.0. It is relating to winxp ...i needed a folder icon to display in my treeCtrl application.so i exteracted it using a IconExtractor software from the System32\url.dll.Internet Explorer Favorite picks its icons from this dll. This icon display all right with full quality in all other OS(WIN98,WINME,WIN2000) But in WINXP it i get the dark shade under these icons . But it is not only with me my app, i also saw another very famouse software (Neero Burning ROM) which use the same icon , and it also gets the similar shade under that icon. So there must be some problem regarding WINXP. But on the other hand IE Favorites in WINXP display that all rightt. so any clue. No Worries!
-
I am also getting the similar kind of problem , i am using VC6.0. It is relating to winxp ...i needed a folder icon to display in my treeCtrl application.so i exteracted it using a IconExtractor software from the System32\url.dll.Internet Explorer Favorite picks its icons from this dll. This icon display all right with full quality in all other OS(WIN98,WINME,WIN2000) But in WINXP it i get the dark shade under these icons . But it is not only with me my app, i also saw another very famouse software (Neero Burning ROM) which use the same icon , and it also gets the similar shade under that icon. So there must be some problem regarding WINXP. But on the other hand IE Favorites in WINXP display that all rightt. so any clue. No Worries!
No, that is an other problem. The icon is 24-bits (I guess it is) and that dark shade is real. But XP can 'convert' that shade to a transparency level and so use it for the Operating System. For instance, in the "Choose an icon" :~ dialog (when choosing an icon for a link or a folder or whatever), you'll see an array of some icons in SHELL32.DLL :~ . You don't see a weird shadow there. But when a not-advanced program opens/extracts the icon, the shade will appear, because it is impreted as an opaque color.