On Fri, 16 Nov 2001, Boris Perron wrote:
> Is there a way to create a bitmap in the constructor
> and use black as index 255 instead of index 230.
>
> The default color table doesn't use 230 to 255 (there
> are all the same black 0-0-0) but if I change the
> color table and want to display my ressource bitmap,
> the black will be new color set to index 230 instead
> of 255.
>
> I can't switch index 230 and 255 because the negative
> of white (index 0 ) will becomes the color previously
> in 230...
>
> I can see it by not changing the system color table,
> display a B&W ressource bitmap and do a reverse over
> it : the black reverse to light gray ( that is the
> color index 26, the opposite of 230 )

  yikes :) we had this problem in pilrc a while back,
  so we just changed the algorithm for matching to check
  0,0,0 in a special case..

  maybe constructor needs the same thing.

  you could work around it using a b+w bitmap, and, draw
  it to a 8bpp window (it'll convert 0..0 and 1..255) :P
  its a workaround.. but, takes up memory :P

// az
[EMAIL PROTECTED]
http://www.ardiri.com/


-- 
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