Skip to content

ReadPixelFast

Claude edited this page Oct 27, 2026 · 10 revisions

Blitz3DBlitzPlusBlitzBasic

ReadPixelFast

ReadPixelFast:Int32 x:Int32, y:Int32, buffer:Int32=0
Parameter Type Default Description
x Int32 required Horizontal position of the pixel.
y Int32 required Vertical position of the pixel.
buffer Int32 0 The locked buffer to read from. Defaults to the current buffer.

Returns: The color of the pixel, or 0 if the position is outside of the buffer.

Description

Returns the color of a pixel of a locked buffer in the same form as ReadPixel. The buffer has to be locked with LockBuffer.

Differences

  • A buffer that is not locked stops the program with an error message. In the original a position outside of the buffer reads other memory.

Related Commands

CopyPixel, CopyPixelFast, ReadPixel, WritePixel, WritePixelFast

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally