Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>getattrbg() video function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  GETATTRBG()                                                 Video Function
 Purpose..: Grab the screen location background color number
-------------------------------------------------------------------------------
 Syntax...: GetAttrBG( <nRow>, <nCol> ) --> nClrBack

 Arguments: <nRow>     = row on the screen.
            <nCol>     = column on the screen.

 Returns..: nClrBack is the integer representing a color attribute.
            The integer formula is ...( nBack * 16 )

 Remark...: It is a high speed function used to pick off the
            background color attribute at the given co-ordinates.
            It does not change Clipper's color settings.

 Source...: VIDREAD.C
-------------------------------------------------------------------------------
 Example..: The example will grab the background of a point
            of the screen. Like all of these functions, it uses direct
            video writes for speed.

                nClrBehind := GetAttrBG( 7, 2 )

See Also: GetAttrFG() GetAttr() GetChar()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson