Hello everybody,
I'm having some problem displaying some grayscale images on
PalmOS 3.3. I can display 1 bit and 2 bit images, but not in 16
levels of gray. (I own a Palm V)
Here is the piece of my code that does the drawing...
{
VoidHand bitmapHandle = DmGetResource('Tbmp', Type3BitmapFamily);
WinDrawBitmap((BitmapType *)MemHandleLock(bitmapHandle), x, y);
MemHandleUnlock(bitmapHandle);
DmReleaseResource(bitmapHandle);
}
In constructor, I define a bitmap family to each image, so I can
work "theorically" with any screen deep. This code is the
classic code, and works fine with 1 bit mode and
2 bit mode, but, I can't display the 4 bit images...
I start the 2 bit mode with this code:
{
unsigned long scrDepth = 2;
ScrDisplayMode(scrDisplayModeSet, NULL, NULL, &scrDepth, NULL);
FtrSet(sysFtrCreator, sysFtrNumDisplayDepth, scrDepth);
}
How do I do to "activate" the 4 bit mode? I think that it is
posible to do so, because I've seen it in other aplications, but
I can't activate it... My first try was to change my scrDepth
variable to 3, but it does not work... I get the 2 bit mode
instead.
What am I doing wrong?
Thanks you a lot!
:-)
--
Best regards,
Jose Rodriguez Ruibal
Handheld Devices Tech. Manager
NIT (Nomad Information Tech)
e-mail: mailto:[EMAIL PROTECTED]
web: http://www.nomad-it.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/