posted 19 years ago
Hi
How to create bufferedImage of an image that has transparent pixels?
If do so:
tail=new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB);
Graphics tailContext = tail.createGraphics();
tailContext.drawImage(tailImage, 0, 0, null);
the whole image will be transparent.
and if so:
new BufferedImage(10, 10, BufferedImage.TYPE_INT_AGB);
the transparent parts will be black.
[ August 21, 2004: Message edited by: Juhan Voolaid ]