Hi Alan,

The problem may be due to a problem in the postlinker which causes bitmaps
to show up black if you build the app in 16 or 256 colors. The bug is caused
by palette frying. You may want to try setting your display to thousands of
colors or greater, remove object code (must!) and rebuild your app,
hopefully this will resolve the problem.

Rgds,
Jun-Kiat Lam
Metrowerks Technical Support

----- Original Message -----
From: Alan Pinstein <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 1999 3:02 PM
Subject: Displaying Greyscale Bitmaps...


> Hi-
>
> I am trying to display greyscale bitmaps in my application, which is
> a palmcall app of a Palm VII PQA. I would like to display a bitmap in
> greyscale so as to not break the expectation of the user to see
> greyscale in a web app. So, I have pasted in a grey bitmap in
> constructor. The bitmap is set to 4-greys, and it seems to be correct
> in constructor. Upon palmcall execution, I check the screenmode, and
> it is in 2-bit mode. Then, I use WinDrawBitmap to draw the bitmap.
> But the bitmap appears in black & white mode. I am not sure where my
> plan is breaking down. Here are my thoughts, please let me know if
> you have more info:
>
> 1) Construtor doesn't actually create 2-bit images in the saved files.
> 2) PalmRez converts 2-bit bitmaps to 1-bit.
> 3) WinDrawBitmap doesn't currently draw 2-bit bitmaps.
>
> I imagine that one of these reasons is the one getting me. Does
> anyone know which one and what a workaround is?
>
> Thanks,
>
> Alan Pinstein
> Synergy Solutions, Inc.
> http://www.synsolutions.com
> 1-800-210-5293
>

Reply via email to