ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / CompatibleDeviceContext Class / GetPixel Method
Specifies the coordinate, in logical units, of the pixel to be examined.

In This Topic
    GetPixel Method (CompatibleDeviceContext)
    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 Point _
    ) As Color
    public virtual Color GetPixel( 
       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