Re: AWTTextureIO premultiplying colors with alpha?
Posted by Robert on Jul 17, 2013; 4:26pm
URL: https://forum.jogamp.org/AWTTextureIO-premultiplying-colors-with-alpha-tp4029601p4029609.html
this worked:
ByteArrayOutputStream os = new ByteArrayOutputStream();
ImageIO.write(bufferedImage, "png", os);
InputStream is = new ByteArrayInputStream(os.toByteArray());
TextureData td = TextureIO.newTextureData(gl.getGLProfile(),is, config.useMipMaps, "png");
Thanks for your help!