Collin R. Mulliner wrote in message news:4718@palm-dev-forum...
> could it be that the "WinRGBToIndex" call is very slow ?
There are many ways to implements this conversion, but the obvious brute
force approach is a linear scan of all colors in the palette to find which
color is a best match. Remember that the given RGB color need not be in the
palette, so this isn't as simple as it sounds to do more efficiently than
that. Your best bet, regardless of how this conversion is implemented, is to
do such conversions rarely by maintaining the results for future use.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html