ComponentOne MultiSelect for WinForms
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 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.
    Requirements

    Target Platforms: 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