Resizing an image without losing transparency
I'm making an image editing software in java and need to resize the images so that users can edit images pixel by pixel. However, whenever I use image.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH); the image loses its transparency. All the image files I use are png's. How do I resize an image without losing transparency?
Re: Resizing an image without losing transparency
Can you put together an SSCCE that demonstrates exactly what you're doing? That way we can play with it and see if we can find a solution for you.