Michael Pfeiffer said: > Hi, > > when I load a picture with transparency information (e.g. a GIF-file) > using the TextureLoader and map it onto a Shape3D, the transparent parts > of the image appear transparent for the object too. > > But when I try to do the same using a dynamically created BufferedImage, > it doesn't works. The ARGB-bitmap of the image is loacted in the > int-array "pixels": > > BufferedImage flareImage=new > BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB); > flareImage.setRGB(0,0,width,height,pixels,0,width);
according to the javadoc setRGB doesn't set any alpha, just the RGB, so the alpha will not be set and the image will be fully opaque. HTH Jeremy -- Homepage: http://www.computerbooth.com/ Codepage: http://www.newdawnsoftware.com/ =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".