|scaling PNG loses transperacy [message #460992]
||Tue, 13 September 2005 22:58
Registered: July 2009
I'm a java newbie just writing my first program (see http://www.eclipsezone.com/java/forums/m91922511.html) and I have a problem with scaling PNG's (as you can read in the posting above).
I figured how to resize the images:
icon = new Image(display, 24, 24);
GC gc = new GC(icon);
gc.drawImage(iconOrig, 0, 0, iconOrig.getBounds().width, iconOrig.getBounds().height, 0, 0, 24, 24);
where iconOrig is the original image.
the problem is that I loose the transperacy and I get a white background.
is there a way around this?
Powered by FUDForum
. Page generated in 0.01792 seconds