coloring between the lines
hello,
i am having a problem figuring out something out in java. i have to write an app that has the outline of a human body that nurses will "color" certain areas. then i need to calculate what percent of what area was colored( left arm, right arm, etc).
i have the body outline in the form of an .png. i can load the image, copy it to a BufferedImage, render it and draw it back to the screen. the image consists of an all white body with a black outline, on a tan background,
problem #1) i can't seem to find a way to keep the the painting inside the black outline of the body. any suggestions on how to approach this?
problem #2) any advice on calculating the percentage of each area colored would be appreciated.
thanks.

