Hello Everybody.
I'm working on a graphic editor prototype which requires the implementation of a background eraser.
I built a layered structure with a layeredPane. the first layer contains a background image which remains untouched, the second layer is transparent and is used for the user defined graphics. So, I'd like to make users able to erode color on the second layer with an eraser tool.
I can't just implement the eraser with a stroke in background color, as this would just cover the background image.
And neither setting the background color as transparent would be useful, as it just is paint over.
I'm trying to find if there are some modes which allow me to substitute colour instead of simply painting it over the old color value, but up now I didn't find anything. Can you suggest me some settings for the graphic object so I can achieve that effect?
Many thanks in advance!
