-
Notifications
You must be signed in to change notification settings - Fork 184
[Win32] Extract alpha values from icons if available #715 #1130 #1138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Proposed change has already been validated during the initial attempt to fix #715. In particular, see #715 (comment). |
|
Thanks for the verification @deepika-u! We were not waiting for any feedback so far. This was supposed to demonstrate an alternative to #1131. Unfortunately the fix was missing the usage of given zoom for retrieving the proper image data. I have corrected that and now the results look as follows for 100%, 125%, 150%, 175% and 200%: |
|
@HeikoKlare @tmssngr From a user perspective i would prefer to go with 1138 way of fixing because it looks better in my opinion. |
|
@deepika-u Thanks for the screenshots. I'd also say the last result (1138) is the best. |
171acf7 to
1133702
Compare
|
Thanks for testing again, @deepika-u, and for providing all the screenshots! The screenshots show one final issue that was not visible in my screenshots because we use different settings ( With Also thanks to @tmssngr for sharing your opinion on the results. |
|
@HeikoKlare: Out of curiosity. Could you please highlight in deepika-u's screenshots where the remaining glitch was noticable? I have not spotted it yet. |
|
Hi @HeikoKlare I have tested your latest fix again and see they are not cutoff anymore now. I say its really a "WOW" for your consistent efforts for driving this fix. With latest 1138 pr(after 2 new commits added) I am good to go with this fix. Thanks alot once again. I still see another problem which we may want to fix later(may be in another issue as an improvement on top of this). |
That's a correct observation and even applies to all icons, not only program icons. The reason is the usage of |
Do you also want to add that part too(change the default setting to make it neat and complete) and give it a try in this fix itself? Or to make it simpler it might be recommended to do in a different pr altogether? Whats your opinion on it? |
|
I would do rather such a change in a separate PR as it is unrelated to what we do here and there may be more opinions and discussion on it (and also potential reasons not to do the change). |
…pse-platform#715" This reverts commit 97ca656 because it resulted in specific program icons (such as the one for .exe files) not being loaded anymore. Contributes to eclipse-platform#1130
…#715 eclipse-platform#1130 Under certain conditions, program icons loaded on Windows via GDI+ have empty mask data, even though the original icon has proper mask data. As a result, these icons are printed with a black instead of a transparent background. Still these icons can contain valid alpha data in their usual 32-bit data. With this change, alpha data is extracted for icons which are loaded without proper mask data to ensure that they have proper transparency information. Fixes eclipse-platform#715 Fixes eclipse-platform#1130












This replaces the fix for black icon background because of faulty alpha values contributed via #999 with the solution proposed in #998. As documented in #1130, #999 produced a regression as some program icons (such as for
.exefiles) are not loaded anymore.Under certain conditions, program icons loaded on Windows via GDI+ have empty mask data, even though the original icon has proper mask data. As a result, these icons are printed with a black instead of a transparent background. Still these icons can contain valid alpha data in their usual 32-bit data.
With this change, alpha data is extracted for icons which are loaded
without proper mask data to ensure that they have proper transparency
information.
Fixes #715
Fixes #1130