I have a JPanel
with an two images (one underneath the other). The goal is for the user to be able to use the mouse the "scratch off" the top image and thus expose that part of the bottom image.
It is Erase part of image on Tkinter canvas, exposing another image underneath exactly except in Java Swing instead of Python.
Is this possible? I know you can use BufferedImage.getSubimage
, but, as far as I can tell, this only works to crop the image.