Yes, caching is the "only" way to get it a bit faster ...
thanks ... Collin
On Mon, 13 Mar 2000, David Fedor wrote:
> >could it be that the "WinRGBToIndex" call is very slow ?
>
> Well, "very" is obviously subjective, so it is hard to give an absolute
> answer. However, think about what the routine needs to do: given a
> three-byte value, search through 256 unsorted and presumably unique values
> to find the closest one to the given value.
>
> No wonder it is slow :-)
>
> Presumably you'd be able to cache the index that you want, unless you're
> changing the palette all the time.
>
> -David Fedor
> Palm Developer Support
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html