Function RGB(sys red, green, blue) as sys
Function = red + green*256 + blue*65536
End Function
i also try this to:Function RGB(sys red,green,blue) as sys
green *=256: blue *=65536
Return red+green+blue
End Function
Function RGB(sys red,green,blue) as sys
sys color
color = red
color = color + green*256
color = color + blue*65536
Return color
End Function
'create window
win = SetWindow("Test AwinH",x,y,w,h,0,winstyle)
INT hDC=GetDC(win)
CASE WM_PAINT
'draw vertical lines--------
For x = 5 to 10
For y = 100 to 300
PSet(hdc, x, y, 242,242,222)
Next
Next
ReleaseDC(win,hdc)
What's the difference?Big...on old way i get wrong colors mostly without blue component.