Palm OS 3.5. I've tried it on the emulator as well as a real IIIXE. Since
recieving this email I tried it on a Palm Vx as well and got the same (all
black) results. I have seen other programs such as pinball displaying gray
on my units(doesn't appear to be interleaving patterns..looks like real
grays) so I assume it can be done. I'm just not making the proper calls.
I've tried WinDrawBitMap as well as WinPaintBitMap.
My calls have gone as follows:
......First in appstart:
newDepth = 8;
err = WinScreenMode(winScreenModeSet, NULL, NULL,&newDepth, NULL);
......then in my form event handler:
MemHandle resHandle = DmGetResource( bitmapRsc, FrontBodyGrayBitmap);
BitmapPtr bmpPtr = (BitmapPtr)MemHandleLock( resHandle );
WinDrawBitmap( bmpPtr, HORIZ_PIXEL_BOUNDS_LEFT,VERT_PIXEL_BOUNDS_TOP);
MemHandleUnlock( resHandle );
DmReleaseResource( resHandle );
I'm doing something wrong, just not sure what.
-----Original Message-----
From: Nesse, Rustin [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 3:39 PM
To: Palm Developer Forum
Subject: RE: 4 bit bitmap shows only as 1 bit
Wait a minute, Rick, what version of the OS is running on your
handheld? What type of screen does it have? I know with some
units, you have to do some pretty funky things with the screen
to get grayscale out of them (or just interleave patterns of
black and white pixels).
-Rus
>By the way, I also tried setting the depth var to 8 as that
>looked like it
>would set the screen depth to 4 according to WinScreenMode
>documentation.
>
>
>-----Original Message-----
>From: Rick Gadbois [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 30, 2000 3:01 PM
>To: Palm Developer Forum
>Subject: 4 bit bitmap shows only as 1 bit
>
>
>I am trying to display a 16 shaded gray bitmap but it is
>always all black
>pixels.
>
>Have used call to set screen mode as follows:
>UInt32 depth = 4;
>Err err = WinScreenMode(winScreenModeSet, NULL, NULL,&depth, NULL);
>but still all that is displayed is an all black bitmap.
>
>Any suggestions anyone?
>Thank You.
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/