how to : Merging 2 transparent icons

Hi

While trying to make APIComparator plugin IDEA 7 and 8 compatible, I'm encountering an issue : I need to merge two icons (for example node/static.png and node/field.png found in IDEA icons.jar).

Does anyone know how to easily do that ?

2 comments
Comment actions Permalink

final LayeredIcon layeredIcon = new LayeredIcon(2);
layeredIcon.setIcon(originalIcon, 0);
layeredIcon.setIcon(myOverlayIcon, 1, xOffset, yOffset);

0
Comment actions Permalink

Thanks a lot

0

Please sign in to leave a comment.