I am making a game using Java’s swing.
There is a part during the game where a certain image needs to be exposed on the screen with 50% transparency, but I don’t know how to make that image transparent.
If you know, please let me know.
I searched for this information on the Internet, but all I found was about making the window itself transparent or removing the background behind the image.
I also thought about using another program to make the original image transparent and insert it into a separate source file, but not only was it not perfect, but it felt different from the background screen in the game, so I gave up.
I’m not familiar with English, so I used a translator. I would appreciate your understanding even if there is poor grammar.
user25866990 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.