I missed the part about drawing text on top of the bitmap... Given that, I
think you _are_ headed down the wrong path. I would focus on trying to find
a way to have a transparent background color. I'm not sure of the exact
solution but looking at WinPaintChars with WinDrawOperation looks promising.
//Ray
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike
Walters
Sent: Tuesday, January 30, 2001 8:39 PM
To: Palm Developer Forum
Subject: RE: Setting background color of text
This will help me set the background color if I know the RGB value.
However, the bitmap I need to place the text on top of was created in
Constructor using the palatte of colors available, and I'm not sure which
shade of green it is. Is there any way to query the bitmap to get its
color?
Thanks,
Mike
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ray
Marshall
Sent: Tuesday, January 30, 2001 10:30 PM
To: Palm Developer Forum
Subject: RE: Setting background color of text
You can do something like:
RGBColorType color;
color.r = 0x0;
color.g = 0xFF;
color.b = 0x0;
WinSetBackColor( WinRGBToIndex( &color ) );
//Ray
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike
Walters
Sent: Tuesday, January 30, 2001 7:14 PM
To: Palm Developer Forum
Subject: Setting background color of text
I know this is probably an easy question, but I just can't seem to find the
answer anywhere. I've looked in the Palm site, and through the reference
and companion docs for 3.5.
I have an app where I use a bitmap to set the background color of the app to
green (white on non-color machines). As I put text over the bitmap, the
background color of the text is always white. I want the background color
of the text to be green (white on non-color machines).
I know there is a function called WinSetBackColor, but the argument to it is
an IndexedColorType. I can't figure out which value to use. I suspect I'm
going down the wrong path here. I know there are other functions that set
the color based on an RGB value, but I can't figure out how to find the RGB
value for my background bitmap.
Any help on this, or even a snipet of sample code would be GREATLY
appreciated.
Thanks,
Mike Walters
--
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/