It is a colormap. What we are doing is that we have 4 states on a display
and the user can tap on any one of the 4 states and it will take them to
another screen that has a series of farm fields, the user again taps on a
selection until he gets the one that he wants to work with.
The only way that I could achieve the user being able to tap on any area in
the polygon and get the right image was to make a color map and overlay the
original image over the top of it.
In other words the user sees the states image but when the user taps the ppc
gets the location of where the user taps and the pixel color from the
underlying colormap of RGB colors. The RGB color is turned into an argb color
value that has references in a database table to tell the program what the
user clicked.
Kinda hard to explain but I think you might get the idea. I am very open to
an easier way to achieve this if anyone has one.
Thanks everyone for helping me. I really appreciate it.
------------------------------------------
Noble D. Bell
AgForest Partners, Inc.
[quoted text, click to view] "<ctacke/>" wrote:
> > Thats interesting. If that is the case then how would one ever take the
> > argb
> > value of a pixel and look it up in a database table against a list of
> > values
> > if the pixel argb value could be different on different hand helds?
>
> I've got no idea why you'd want to look it up in a database, but you can
> always strip the LSBs and do a lowest-common-denominator comparison.
>
> >
> > What is the norm on ppc's for color depth nowadays? 16-bit? 32-bit?
> >
>
> There is no "norm". 12 and 16 bit are the most common. It's unusual to see
> more depth, as most displays of the size you're looking at don't support any
> higher depth, so it's just a wast of memory and bus bandwidth.
>
> -Chris
>
>
[quoted text, click to view] > Thats interesting. If that is the case then how would one ever take the
> argb
> value of a pixel and look it up in a database table against a list of
> values
> if the pixel argb value could be different on different hand helds?
I've got no idea why you'd want to look it up in a database, but you can
always strip the LSBs and do a lowest-common-denominator comparison.
[quoted text, click to view] >
> What is the norm on ppc's for color depth nowadays? 16-bit? 32-bit?
>
There is no "norm". 12 and 16 bit are the most common. It's unusual to see
more depth, as most displays of the size you're looking at don't support any
higher depth, so it's just a wast of memory and bus bandwidth.
-Chris