[Icons] Issue with drawing of png icons with transparency

Moderator: abstr

Post Reply
fitnerd
Posts: 49
Joined: Wed Nov 20, 2019 7:19 am

[Icons] Issue with drawing of png icons with transparency

Post by fitnerd » Wed Mar 10, 2021 9:48 am

Hello!

I think this issue appeared sometime in the 8.0.1x timeframe - perhaps after 8.0.14. I did not bother reporting it then, hoping a fix would be done soon, but now it really starts to bother me.

Basically if I use a custom png icon with alpha transparency, the semi-transparent pixels are rendered as if being painted over a pink/violet background, resulting in a pinkish/violetish border around the main icon. This happens in all views, as well as in the icon selector dialog itself.

I am using latest stable version ATM: 8.0.19.1 on Win10 x64 1803.

Hopefully this can be fixed soon.

Thank you.
Attachments
Sample icon 2
Sample icon 2
th_faw.png (886 Bytes) Viewed 435 times
Rendering screenshot
Rendering screenshot
2021-03-10 13_10_05-Select Task Icon.jpg (10.27 KiB) Viewed 435 times
Sample icon
Sample icon
shopping_cart_gam.png (884 Bytes) Viewed 436 times
Rendering screenshot
Rendering screenshot
2021-03-10 12_46_31-Select Task Icon.jpg (15.64 KiB) Viewed 436 times

User avatar
abstr
Site Admin
Posts: 369
Joined: Sun Jul 28, 2019 12:22 pm

Re: [Icons] Issue with drawing of png icons with transparency

Post by abstr » Fri Mar 12, 2021 1:35 am

Hi stranger!

I use a native Windows 'image list' to store the loaded images and it only has an interface that supports icons (.ico) and bitmaps '(.bmp) and currently I must be converting the PNGs to bitmaps that use a magenta mask color which when combined with alpha-blending gives purple-pink edges.

My plan will be to find a way to convert the PNGs direct to 32-bit icons so that the issues goes away...

fitnerd
Posts: 49
Joined: Wed Nov 20, 2019 7:19 am

Re: [Icons] Issue with drawing of png icons with transparency

Post by fitnerd » Fri Mar 12, 2021 6:29 am

Hi Dan!

The strange thing is that I have not noticed this issue with the same icons in pre ~8.0.14 releases. So I thought something was changed. But I am glad you are considering a proper solution for this.

Would you say that in the meantime I should therefore use 32-bit ico format for custom icons?

Thank you.

User avatar
abstr
Site Admin
Posts: 369
Joined: Sun Jul 28, 2019 12:22 pm

Re: [Icons] Issue with drawing of png icons with transparency

Post by abstr » Fri Mar 12, 2021 7:08 am

The good news is that my plan was successful.

The bad news is that the changes are fundamental enough for me to only feel comfortable putting it in 8.1.

ps. The issue has been around for a while but has also definitely worsened more recently. I might see if I can restore the less noticeable effect for 8.0 as an interim measure.

fitnerd
Posts: 49
Joined: Wed Nov 20, 2019 7:19 am

Re: [Icons] Issue with drawing of png icons with transparency

Post by fitnerd » Fri Mar 12, 2021 4:22 pm

That's great work! Thanks so much!

I am not feeling safe with Developer Previews due to your rightful warnings, however once it reaches beta, I think I will switch to 8.1 then. Still I can live with what we have in 8.0 for the time being. Glad you fixed it though!

User avatar
abstr
Site Admin
Posts: 369
Joined: Sun Jul 28, 2019 12:22 pm

Re: [Icons] Issue with drawing of png icons with transparency

Post by abstr » Sun Mar 21, 2021 6:19 am

Improved in 8.0.20

Post Reply