This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have a program where I allow a user to load multiple images, and then i save them to the file system, and then allow them to reload them into the viewer. that is working fine, but if a user loads a ping with transparent areas, it displays fine the first time it is loaded, but after the user saves their work and reloads it all the transparent areas are black. I am storing the images as buffered images, and am getting an array of pixels for the buffered image using the following to save the image.
int pixels = convertImage(bi);
and using the following to convert it back into a buffred image when the user loads the file:
int tempPixels = tempItem.getImage(); BufferedImage bi = createImage(tempPixels, tempItem.getSaveWidth(), tempItem.getSaveHeight());
any help on how to save the image and keep transparency would be greatly appreciated.