strange colors ?

Blitz3D Forums/Blitz3D Beginners Area/strange colors ?

GC-Martijn(Posted 2004) [#1]


I have this blitzcode:

Graphics 800,600,16,2

; Now for a box 
Color 117,142,102
Rect 100,100,200,200,1 

While Not KeyHit(1) 
Wend 


and when I printscreen or saveImage() that and open it in photoshop then colors are wrong.

I only want to use
Color 117,142,102


but in photoshop its: 115,142,99
------------------------------------

How is this possible ?

And second question
Is there a way to open a image in blitz and read a pixel and get the R G B.
Then I can check in the same program the color.

THanks


Rob Farley(Posted 2004) [#2]
Change it to 32 bit colour and everything should be cool.

16 bit colour always makes an approximation (this approximation varys from graphics card to graphics card entertainly enough)


PowerPC603(Posted 2004) [#3]
For your second question:

Check out the GetColor, ReadPixel, ReadPixelFast, ColorRed, ColorGreen and ColorBlue commands.


GC-Martijn(Posted 2004) [#4]
the second question was a stupid question // sorry

Thanks for helping , its working again.