Reading Image Buffers

BlitzPlus Forums/BlitzPlus Programming/Reading Image Buffers

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.

ReadPixel (as well ReadPixelFast) need an image buffer to work with.

So you should first set the image buffer:
setbuffer imagebuffer(heightmap)

then lock the buffer with the command lockbuffer

At the end of the process, use UnlockBuffer.

Hope this helps,
Sergio.