| | | | Browse by category |
Article ID: 2258
Last updated: 29 May, 2018
Question
How can I deep copy an IlvIcon so that the image inside it is also copied?
Answer
An instance of IlvIcon can contain an instance of java.awt.Image or of java.awt.image.RenderedImage, and a copy of an IlvIcon object references the same image as the original.
To make a deep copy of an IlvIcon object:
- Copy this object and get the reference to its image (by means of the method getImage() or IlvIcon.getRenderedImage()).
- Copy that image into a new image object and set it to the new IlvIcon object using one of the methods IlvIcon.setImage() or IlvIcon.setRenderedImage().
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 2258
Last updated: 29 May, 2018
Revision: 3
Views: 708
Posted: 28 Jul, 2010 by
Dean J.
Updated: 29 May, 2018 by
Gargani A.
Others in this category
Powered by KBPublisher (Knowledge base software)