G
Guest
Hi everybody.
What is a general way to code the application that has some regions and
needs to do the hit testing. Say, for example, I have a bitmap that shows the
United States, now I want to be able to display a message showing the name of
the selected State. Or, I increase or decrease the size of the bitmap, I want
to be able to do the same. Is the easiest way to process a bitmap to get the
paths of state borders, or there is a better way for hit testing of irregular
shapes.
Thanks.
What is a general way to code the application that has some regions and
needs to do the hit testing. Say, for example, I have a bitmap that shows the
United States, now I want to be able to display a message showing the name of
the selected State. Or, I increase or decrease the size of the bitmap, I want
to be able to do the same. Is the easiest way to process a bitmap to get the
paths of state borders, or there is a better way for hit testing of irregular
shapes.
Thanks.