Clone wiki

2D XNA Primitives / PutPixel

PutPixel

Puts a pixel on the screen

public static void PutPixel(this SpriteBatch spriteBatch, float x, float y, Color color)
public static void PutPixel(this SpriteBatch spriteBatch, Vector2 position, Color color)
Parameter NameDescription
spriteBatchThe destination drawing surface
xThe x location of the pixel
yThe y location of the pixel
positionThe location of the pixel
colorThe color of the pixel

Updated