Unit 'cybergraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

ReadRGBPixel

Reads a pixel from a specified location

Declaration

Source position: cybergraphics.pas line 166

function ReadRGBPixel(

  Rp: PRastPort;

  X: LongInt;

  Y: LongInt

):LongWord;

Arguments

X

  

the x coordinate of the pixel

Y

  

the y coordinate of the pixel

Function result

the desired color in AARRGGBB format. Every component allocates 8 bits in the returned longword.

Description

Read the alpha,red,green and blue 8-bit color components of the pixel at a specified x,y location within a certain RastPort

Attention

This function should only be used on screens depths > 8 bits. Use ReadPixel() on 8 bit screens!

See also

WriteRGBPixel

  

Writes a pixel to a specified location

ReadPixel

  

read the pen number value of the pixel at a specified x,y location within a certain RastPort.


Documentation generated on: 2021-07-30