RGB Relative
Blitz3D Forums/Blitz3D Programming/RGB Relative
| ||
my graphics is set to 16bit depth color, but i want to read the color in a imagebuffer will the PickColor return true colours? |
| ||
I think Imagebuffers are handled as 32 Bit always, but I could be wrong. why not write a little Test App likedim check(255) setbuffer imagebuffer(img) lockbuffer for i=0 to 255 rgb=(i shl 16) or (i shl 8) or i writepixelfast 0,0,i rgb2=readpixelfast(0,0) if rgb<>rgb2 then check(i)=1 endif next unlockbuffer setbuffer backbuffer() for i=0 to 255 if check(i)<>0 print "color "+i+","+i+","+i+" was not delivering 24 Bits" endif next well, not tested :) |