Getting Colours from Read Pixel

Blitz3D Forums/Blitz3D Beginners Area/Getting Colours from Read Pixel

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The most significant byte of the long integer that is returned by readpixel may be a random value (AFAIK). since you won't need that byte anyway, I'd suggest to mask it out from beginning on:

rgb=ReadPixel(0,0) And $FFFFFF