RFR: 8282526: Default icon is not painted properly [v6]

Alexey Ivanov aivanov at openjdk.java.net
Thu Jun 9 11:00:35 UTC 2022


On Mon, 6 Jun 2022 23:47:15 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> Detect the situation where we do need to perform interpolation during ImageIcon
>> painting and set a hint to the rendering to perform bicubic approximation so
>> image details are preserved during transition.
>
> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix the line ends

Does the generic problem still exist? The one that you demonstrated with a sample image?

If the user loads an icon which has lines, the lines may disappear if the icon is scaled down. The problem could be seen with regular `ImageIcon` too, not necessarily with a `MultiResolutionImage`.

The solution is to apply BICUBIC rendering hint, which could be not as easy: the icon is likely used in a Swing component rather than rendered directly.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7805



More information about the client-libs-dev mailing list