Hi there -
I have made a simple design .
I would like to modify this code to save this image as a PNG with a transparent background.
Can anyone help me? Thanks!
The frame created with the draw() method does not have a transparent background so when you save it with save("93.png"); you will not get any transparent pixels. The solution is to draw to an off-screen buffer and then save the buffer. Use the createGraphics method to create the buffer then you can draw to it.