
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>getattr() video function</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GETATTR() Video Function
Purpose..: Grab the screen location color number
-------------------------------------------------------------------------------
Syntax...: GetAttr( <nRow>, <nCol> ) --> nClrNo
Arguments: <nRow> = row on the screen.
<nCol> = column on the screen.
Returns..: nClrNo is the integer representing a color attribute.
The integer formula is ...nFore + ( nBack * 16 )
Remark...: It is a high speed function used to pick off the
color attribute at the given co-ordinates.
It does not change Clipper's color settings.
Source...: VIDREAD.C
-------------------------------------------------------------------------------
Example..: The example will grab a point of the screen.
Like all of these functions, it uses direct video
writes for speed.
nClrSpot := GetAttr( 17, 23 )
See Also: GetAttrFG() GetAttrBG() GetChar()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson