Sdílet prostřednictvím


PixelBitmapContent.GetPixel Method

Note

This method is available only when developing for Windows.

Gets the pixel value at the specified location in the bitmap.

Syntax

'Declaration
Public Function GetPixel ( _
         x As Integer, _
         y As Integer _
) As T 
public T GetPixel (
         int x,
         int y
)
public:
T GetPixel(
         int x,
         int y
)

Parameters

  • x
    Type: Int32
    The x component of a bitmap pixel.
  • y
    Type: Int32
    The y component of a bitmap pixel.

Return Value

Type: T
Value of the pixel.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

PixelBitmapContent Generic Class
PixelBitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP