Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>getpixel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    GetPixel()

         Informs of the colour of a point in graphic mode

    Syntax:

         GetPixel( nCol, nRow ) -> nColor

         nCol    : Column of the point to verify
         nRow    : Row of the point to verify

    Description:

         It informs of the colour of a point in graphic mode in the
         specified coordinates.

    Return:

         Nothing.

    Example:

         nModo := SetVGA()
         If GetPixel ( 330, 240 ) == 0
           DispChar ( "It's Black", 20, 20, 3, 0, 10 )
         EndIf
         Inkey(0)
         TxtMode()

See Also: SetPixel()

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