Hello, What you can do is that make a polygon of every shape of say n points. When the pendownevent is there use the clipping algo for the point As for the database it will just take a very small space
Manish >From: "Stan Hunter" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Non-Rectangular Imagemaps >Date: Fri, 5 Oct 2001 03:00:09 -0400 > >I'm looking for general advice on how to tackle the imagemap task. > >The functional requirement for a Palm app I'm working on involves >imagemapping over photographic images. For instance, the Palm could show a >full-color bitmap of a room, and I'd want to make an imagemap that would >know when you tapped on any piece of furnature in the picture. Random >objects in a photograph are very non-rectangular shapes, too, and that adds >complexity. > >I'll have all of the images at compile time and I'm brainstorming ways to >do >this. I'm thinking of storing polygons in a Palm database, and if a user >taps inside a polygon, the program would know what object in the picture >the >tap belonged to. I'd like to make sure this is not >wasteful of the Palm device's resources. I'm sure some methods for >imagemapping lend themselves to more efficient algorithms. Another >consideration is >how easy it would be for me to populate the database of polygons or >whatever. There could end up being a lot of rather complicated shapes to >imagemap. > >Any ideas for implementing imagemaps of this sort would be very helpful. > >Thanks, >Stan > >[EMAIL PROTECTED] > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/tech/support/forums/ _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
