1

I want to have a pop up that records where you have pain on your abdomen (much like myIDB app. So the popup has the image of the body and you tap on there. A red marker shows your selection and you cannot place a mark outside the body. How can I set a filter to not allow input outside an image section?

enter image description here

SashaZ
  • 393
  • 7
  • 20

1 Answers1

0

I found an answer: Stackoverflow answer Where you get the alpha value of touch location. I will save the image with a transparent area outside where I want to touch and then its quite simple to determine if the area I want is touched.

Community
  • 1
  • 1
SashaZ
  • 393
  • 7
  • 20