Version

GetPixel(Int32,Int32) Method

Gets the color of the pixel at the specified point in the image
Syntax
'Declaration
 
Public Overloads Function GetPixel( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Color
public Color GetPixel( 
   int x,
   int y
)

Parameters

x
The x position of the pixel
y
The y position of the pixel

Return Value

The System.Drawing.Color of the pixel at the specified point in the image.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also