Function Reference


_WinAPI_GetPixel

Retrieves the color value of the pixel at the specified coordinates

#include <WinAPIGdi.au3>
_WinAPI_GetPixel ( $hDC, $iX, $iY )

Parameters

$hDC Handle to the device context.
$iX The x-coordinate, in logical units, of the pixel to be examined.
$iY The y-coordinate, in logical units, of the pixel to be examined.

Return Value

Success: The color of the pixel, in RGB.
Failure: (-1).

See Also

Search GetPixel in MSDN Library.