K
kasper
Hi,
I have a problem with png-24 images on VM 1.4.2 on Mac OS X. The
semitransparent areas in the images does not display correcly on Mac.
Here is the code I use to load the BufferedImages:
BufferedInputStream in = getBufferedInputStream(image);
BufferedImage bufferedImage = ImageIO.read(in);
in.close();
//Optimize buffered image to environment
BufferedImage bufferedImageOpt =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().createCompatibleImage(bufferedImage.getWidth(),
bufferedImage.getHeight(), transparency);
bufferedImageOpt.getGraphics().drawImage(bufferedImage, 0, 0, null);
bufferedImages.put(image, bufferedImageOpt);
Does anyone know how to fix this problem?
/Kasper
I have a problem with png-24 images on VM 1.4.2 on Mac OS X. The
semitransparent areas in the images does not display correcly on Mac.
Here is the code I use to load the BufferedImages:
BufferedInputStream in = getBufferedInputStream(image);
BufferedImage bufferedImage = ImageIO.read(in);
in.close();
//Optimize buffered image to environment
BufferedImage bufferedImageOpt =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().createCompatibleImage(bufferedImage.getWidth(),
bufferedImage.getHeight(), transparency);
bufferedImageOpt.getGraphics().drawImage(bufferedImage, 0, 0, null);
bufferedImages.put(image, bufferedImageOpt);
Does anyone know how to fix this problem?
/Kasper