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

Alexander Zuev kizune at openjdk.java.net
Mon Jun 6 22:53:29 UTC 2022


> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - - ImageIcon changes reversed
   - Removed the old test
   - Added a new windows-specific test
   - Fixed the small icon retrieval
   - If there is no exact match for requested variant create a new one from
     the closest match by scaling it with bicubic interploation
   - The new variand is cached so no real performance hit there
 - Merge remote-tracking branch 'origin/master' into JDK-8282526
 - Use small icon pointer for icons less than 24 pixels wide - this way we
   get the 16x16 icon which is better for scaling purposes.
 - Take into account scale factor;
   Create a new Graphics2D object instead of juggle the rendering hints;
 - Merge pull request #35 from azuev-java/master
   
   Merge
 - 8282526: Default icon is not painted properly
   
   Detect the situation when icon image painting requires interpolation and set the interpolation to bicubic to
   preserve the icon details as much as possible.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/7805/files
  - new: https://git.openjdk.java.net/jdk/pull/7805/files/b6e099b8..bbe20e44

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7805&range=04
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7805&range=03-04

  Stats: 203856 lines in 3383 files changed: 143945 ins; 15520 del; 44391 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7805.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7805/head:pull/7805

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



More information about the client-libs-dev mailing list