new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
Graphics g = bimage.getGraphics();
try {
if (im instanceof WImage) {
ImageRepresentation ir = ((WImage)im).getImageRep();
ir.reconstruct(ImageObserver.ALLBITS);
}
g.drawImage(im, 0, 0, w, h, null);
} finally {
g.dispose();
}