reading pixels

Blitz3D Forums/Blitz3D Programming/reading pixels

JBR(Posted 2005) [#1]
Hello,

Been using ReadPixel & ReadPixelFast.

If i set the Origin to the centre of the screen then ReadPixel works correctly but ReadPixelFast seems to work only from the top left of the screen.

Anyone else notice this?
Marg


octothorpe(Posted 2005) [#2]
I think that's fair, however the limitation should be noted in the documentation.

The .*Fast() functions are intended to work as quickly as possible, and are probably used by most people in tight loops; an extra couple of instructions to add the Origin to the coordinates supplied would probably cause a substantial performance hit. Adding OriginX() and OriginY() to your for..next loop bounds would be preferable, except that those functions don't seem to exist. :/


JBR(Posted 2005) [#3]
Thanks
Marg