I have a 800 x 800 board where I post several pictures by using the Image class and the drawImage() method. Each image is 100 x 100 in size. If I click at any location of this board, I can easily identify the top left coordinates(x,y) and the length and width of the square.
I have two questions:
a) After I click and the square has been identified, how do I find out if this square contains an image or is blank?
b) How can I set the color of any square that was clicked?
Edited 5 Years Ago by sciprog1: n/a