Environment.GetPixel Method

Gets the color of the specified pixel in this viewport
Public Function GetPixel( _ 
ByVal x As Integer, _ 
ByVal y As Integer
) As Color
This language is not supported or no code example is available.
public Color GetPixel( 
int x
int y 
)
This language is not supported or no code example is available.

Parameters

x
int

The x window coordinate of the pixel to retrieve

y
int

The y window coordinate of the pixel to retrieve (0 on bottom)

Return Value

Color

The color of the pixel

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition