# Sandbox.Bitmap.SetPixel

```csharp
void SetPixel(int x, int y, Color color)
```

Sets the color of a specific pixel in the bitmap.

### Parameters

- `x` (`int`): The x-coordinate of the pixel.
- `y` (`int`): The y-coordinate of the pixel.
- `color` (`Color`): The color to set the pixel to.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
