Share via


GetPixel Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Retrieves the pixel color at a specified location on the display device.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Graphics (in Microsoft.SPOT.Graphics.dll)

Syntax

'Declaration
Public Function GetPixel ( _
    xPos As Integer, _
    yPos As Integer _
) As Color
public Color GetPixel(
    int xPos,
    int yPos
)
public:
Color GetPixel(
    int xPos, 
    int yPos
)
member GetPixel : 
        xPos:int * 
        yPos:int -> Color 
public function GetPixel(
    xPos : int, 
    yPos : int
) : Color

Parameters

  • xPos
    Type: System. . :: . .Int32
    The x-coordinate of the location where pixel color is to be retrieved.
  • yPos
    Type: System. . :: . .Int32
    The y-coordinate of the location where pixel color is to be retrieved.

Return Value

Type: Microsoft.SPOT.Presentation.Media. . :: . .Color
The pixel color at the specified location.

Remarks

The .NET Micro Framework provides the Microsoft.SPOT.Bitmap class for lower-level access, such as animation. For displaying static bitmaps and hyperlinked bitmaps, use the Image control.

.NET Framework Security

See Also

Reference

Bitmap Class

Microsoft.SPOT Namespace