•  Back 
  •  Line-A Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filev_getpixel()
$A002 - Get Pixel                                                    Line-A

Function      Get the color register of the pixel at the specified
              coordinates.

Parameters    PTSIN points to two words which are the X and Y coordinates
              of the pixel to read.

Example       ; Read the color index of point ( 10, 10 )
Binding       
                 move.l  #ptsin,12(a5)
                 .dc.w   $A002

                 .data
              ptsin:
                 .dc.w   10, 10

Return Value  The color register of the pixel is returned in D0.

See Also      v_getpixel()