Reputation: 16425
I have an image with transparent background. I would like to find out whether use have touched the non-transparent area of the image with CoreGraphics framework. Is this possible? Is there any resources that I can read about this?
Thanks heaps for the guidance
Upvotes: 0
Views: 217
Reputation: 33101
You will have to implement the logic yourself here. You will need to intercept the touches to get the coordinates in the image, get the pixel data of the image and determine the alpha value, then determine if that satisfies your definition of transparent.
Upvotes: 2