ArcBasicDocs

ReadPixel

Reads a pixel as ARGB.

ReadPixel ( x,y[,buffer] )

Parameters

x
the pixel's x position.
y
the pixel's y position.
buffer (optional)
the buffer to read, or 0 for the current one.

Description

Gives back the colour of one pixel as a single number holding alpha, red, green and blue (8 bits each, ARGB). Get the red part with (argb Shr 16) And 255, the green with (argb Shr 8) And 255 and the blue with argb And 255.

See also