Unit 'CYBERGRAPHICS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

ReadRGBPixel

Reads a pixel from a specified location

Declaration

Source position: cybergraphics.pas line 236

function ReadRGBPixel(

  a1arg: pRastPort;

  x: Word;

  y: Word

):LongWord;

Arguments

a1arg

  

pointer to a RastPort structure

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