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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.