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
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
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.
There is a function named WinSetColors in OS3.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