Bug 186774 - Cannot create a cached version of Icon when converting Image
Cannot create a cached version of Icon when converting Image
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
7.0
PC All
: P3 (vote)
: 7.0
Assigned To: issues@platform
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-27 00:55 UTC by mvfranz
Modified: 2010-06-02 07:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvfranz 2010-05-27 00:55:45 UTC
org.openide.util.ImageUtilities has many methods that create/convert images/icons.  Many images/icons are cached for re-use when created, but when images are converted to icons or icons converted to images, new instances are created without caching.  It seem fitting that the icon2Image and image2Icon  would also use cached images/icons.

An example use would be to use mergeImage and then wrap the Image in ImageIcon.  If image2Icon cached the resulting icon, multiple calls would not create multiple ImageIcons.
Comment 1 Victor Vasilyev 2010-05-28 13:04:41 UTC
Seems org.openide.util.ImageUtilities is a part of the platform, so I'll re-assign this issue. Please, evaluate this bug.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo