Hello,
I am loading some transparent pngs:
BufferedImage image = ImageIO.read(url);
then I want to draw them on the gl canvas surface:
width = image.getWidth();
height = image.getHeight();
gl.glWindowPos2i(win_x + 5, (win_y - height - 5));
byte[] imgRGBA = ((DataBufferByte)interfaceElements.get(i).image.getRaster().getDataBuffer()).getData();
ByteBuffer buffer = ByteBuffer.wrap(imgRGBA);
gl.glDrawPixels(width, height, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, buffer);
This was working fine until I installed the new java version 1.6.0_20, earlier I was using 1.6.0_14, which was workign nicely!
Now Instead of transparency I got these blueish looking colors.
I read somewhere here, that it has something to do with indexed colors?
Does somebody know how to fix these problem? I was searching for it here, there was an solution from NexusOne, which was not working for me.
kind regards
Knut