PixelBitmapContent.SetPixel Method

Note

This method is available only when developing for Windows.

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

Syntax

'Declaration
Public Sub SetPixel ( _
         x As Integer, _
         y As Integer, _
         value As T _
)
public void SetPixel (
         int x,
         int y,
         T value
)
public:
void SetPixel(
         int x,
         int y,
         T value
)

Parameters

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

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