[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.GetPixel

GetPixel Method

GetPixel(Point)

retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.

Declaration
public virtual Color GetPixel(Point point)
Parameters
Type Name Description
Point point

Specifies the coordinate, in logical units, of the pixel to be examined.

Returns
Type Description
Color

The return value is the RGB value of the pixel. If the pixel is outside of the current clipping region, the return value is Color.Empty.