On Thu, 26 Jul 2001, Ted Lowery wrote:
> Also, if your response is just RTFM or check the KB, don't waste your time,
> as I have done so and am still stuck. Providing that response will just
> incite more riot and waste more bandwidth.
well, i can always say RTFS (source) :P but seriously :P
> I've created the bitmap and included it with PilRC. If I use:
>
> BITMAPFAMILY ID 1601 "bkgnd.bmp" "" "" "bkgnd.bmp"
>
> my bitmap will work, but of course it uses the system palette.
>
> If I use:
>
> BITMAPFAMILY ID 1601 "bkgnd.bmp" "" "" "bkgnd.bmp" COLORTABLE
>
> The bitmap is drawn in all black.
>
> How do I get the custom color table to be used?
it used to work before, and COLORTABLE is an experimental feature
of pilrc :) [i know, i wrote it].. things may have changed with
palmos 4.0 or, the dumping of data from pilrc.. cause it is not
a standard thing.. its not really checked :)
> I'm using WinDrawBitmap.
tell you what :) here is a really cool trick.
take a look at pilrc sources.. and, you'll see the BITMAPCOLOR16
and BITMAPFAMILYSPECIAL tags :) now, if you look closely, they
match to a cutom pallete (yes, a VGA 16 color) ..
change the palette with yours, recompile.. set the palette in
your app using WinSetPallete() and wola! :P
i would LOVE to have a COLORMAP tag specifically for this
bitmap tag (so, we can supply a .pal file) but, been a bit busy
lately to work on pilrc..
and, before you consider digging in.. wait until i get 2.8p7
out :P i'll do that before the weekend.
// 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/