Windows Ico shows pink where transparency expected

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
iconantsy

Windows Ico shows pink where transparency expected

Post by iconantsy »

Hello,

I tried converting a gif (with transparent background)
to a .ico windows icon file. The transparency seems
to show up fine, because the background is indeed
transparent when I set explorer's window background
to anything other than white... but when the background
is white, it shows pink where it should be transparent...

Does anybody know why? This doesn't happen
when I create the icon using visual studio... this
is a 256 color 48x48 ico file

Thanks alot
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Windows Ico shows pink where transparency expected

Post by XnTriq »

When converting a GIF or a palette-based PNG image to the Windows ICO, CUR and ANI formats, one has to ensure that the palette contains 100% black (R0/G0/B0) and 100% white (R255/G255/B255), even if black & white aren't used in the actual image.
Post Reply