Re: Grey Sacale using WinSetForeColor

2003-03-18 Thread Dan Patrutiu
There is a function named WinSetColors in OS<3.5, which is taking as
parameters RGBColorType 's. This is what you need. First be sure you have
set the display mode using the WinScreenMode function (I assume you are
using the latest SDK, this function has another name in prior ones).

Dan


"Alexandre Barreto" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
>
> i need to draw in a mono color Palm
> but WinSetForeColor just set the color to blakc no mather what number i
use
> in the function
> how can i get grey scale to work?
>
> thnx
>
>
>
> _
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Grey Sacale using WinSetForeColor

2003-03-19 Thread Alexandre Barreto


Thx Dan

But my rotine drwas PCx images using windraw pixel so i need to make ond ein 
greysacle por os > 3.5.. so i couldn't find the funcition WInSetColors

i use in my functon
WinPalet to set the Palm palet to mach the one of the picture
but my functon just work for colored or monocrome images
in a palm not colored just mono works ofcurse.. but i want to make grey 
scale to work too

thx



_
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Grey Sacale using WinSetForeColor

2003-03-19 Thread Dan Patrutiu
   The reason is probably that you didn't set the appropriate display mode.
Take a look at the WinScreenMode function in >3.5 (in 3.5 it has another
name but it will be easy for you to find it), and pass a winScreenModeSet
parameter to set the desired color depth. After that, use normal
WinSetForeColor and a RGBColorType parameter as usual. So don't forget to
set the display mode first!

Dan

> Thx Dan
>
> But my rotine drwas PCx images using windraw pixel so i need to make ond
ein
> greysacle por os > 3.5.. so i couldn't find the funcition WInSetColors
>
> i use in my functon
> WinPalet to set the Palm palet to mach the one of the picture
>
> but my functon just work for colored or monocrome images
> in a palm not colored just mono works ofcurse.. but i want to make grey
> scale to work too
>
> thx
>
>
>
> _
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/