That is very helpful,

I will start looking into getting a verices list for my images.

Is it possible to extend this so that I can use my own images Instead
of using some fixed color in the shape? [eg I have an image of man's
arm and it has shades in it. So can I use it as the object that is
being displayed?]
And is it also possible to zoom in/out if I take this approach or do i
have to consider doing something else? I am asking this since I am
assuming that the vertices that I obtain will limit me use some
standard px sizes in my Layout.

Thanks again Frank.

On Dec 27, 3:04 pm, Frank Weiss <[email protected]> wrote:
> I suppose it seemed simple for me since I'm done it with AWT before.
> Basically, you build up a Polygon object with vertices. You pass it to the
> Graphics.draw method to display it (or not if you want an invisible hit test
> layer over the image). You intercept click or touch events and use the
> Polygon's inside() or contains() method to do the hit test.
>
> Depending on the complexity and display size of the image, you may run into
> some hit test accuracy issues due to the touch UI.
>
> If you have the original artwork in Adobe Illustrator, you ought to be able
> to get a vertex list therefrom. If not, google for a raster-to-vector tool
> of your choice, for 
> example:http://freegeographytools.com/2007/converting-raster-area-images-into...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to