ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / GetPixel Method
Specifies the coordinate, in logical units, of the pixel to be examined.

In This Topic
    GetPixel Method
    In This Topic
    retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.
    Syntax
    'Declaration
     
    Public Overridable Function GetPixel( _
       ByVal point As System.Drawing.Point _
    ) As System.Drawing.Color
    public virtual System.Drawing.Color GetPixel( 
       System.Drawing.Point point
    )

    Parameters

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

    Return Value

    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.
    See Also