> > when i display a 1bpp grayscale bitmap on a color device - the white
> > area is assumed to be transparent. perfect. however, when i display
> > a 2bpp or 4bpp grayscale bitmap on a color device - the white are
> > remains white!
>
> What drawing mode are you using to draw? And do your bitmaps have the
> 'transparent' bit turned on? If so, what is the index indicated as being
> transparent? White isn't automatically assumed to be transparent in the
> general case.
>
> There are so many variables that it would be pretty hard to figure out what
> your bug is.
no bug :)) i am sure of it :))
all my 1bpp, 2bpp and 4bpp images are version 1.0 bitmap images - and
hence i dont assign any "transparency" to em :)
the general behavior of WinDrawBitmap() is to assume that with 1bpp
bitmaps that white is transparent. however, the same is not done with
2bpp and 4bpp.
what i have done to get it working correctly, is actually set the
transparency info in the bitmap in pilrc.
the problem i have is that if i DONT do this, only 1bpp bitmaps
assume that white is transparent.
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html