On Mon, 6 Jun 2022 23:47:15 GMT, Alexander Zuev <[email protected]> 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
src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolder2.java line 1441:
> 1439: }
> 1440: if (retVal.getWidth(null) != w) {
> 1441: BufferedImage newVariant = new BufferedImage(w, w,
> BufferedImage.TYPE_INT_ARGB);
This version look good, just one more thought. Can we extend this approach and
do not request all sizes if the user wanted only one image? So if the user will
request all images we request that list from the OS, otherwise only one image
will be requested and cached, what do you think?
-------------
PR: https://git.openjdk.org/jdk/pull/7805