> Once again you come through. Wonderful help.

  should i invoice you? :)

> Now do you happen to know if there is a function or macro in the Palm OS
> headers that does this?
> 
> UInt16 RGB16;
> RGB16 = ((RGBColor.r & 0xF8) << 8) + ((RGBColor.g & 0xFC) << 3) +
> ((RGBColor.b & 0xF8) >> 3);

  good question :)) this all depends on the SDK folks :P

    IndexedColorType WinRGBToIndex(const RGBColorType *rgbP);

  this, and everything else you want is in the Palm OS Reference pdf 
  file :)) this API call, however, on 3.5 only returns an index that
  is between 0 and 255 :)

    typedef UInt8 IndexedColorType;

  i'd check the 4.0 SDK (i dont have it right now - win2k crash!!)
  and ensure that the guys @ Palm did some updating for 16bit color
  and indexing :P

  maybe they created a new API call specifically for 16bit color?

  i dont have the docs or headers handy :) i am off to restore my 
  win2k laptop :)) thankfully, the important code was on another
  partition.. reminds me how important backup's are :)

  (in case others wonder where i was. 900+ posts in 18 months..)

  miss me? :)

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to