## Bitmap::SetPixel method


设置当前对象表示的位图图像中指定像素的颜色。

```cpp
void System::Drawing::Bitmap::SetPixel(int x, int y, Color color)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| x | int | 像素的 X 坐标 |
| y | int | 像素的 Y 坐标 |
| color | Color | 要设置的新颜色 |

## 另见

* Class [Color](../../color/)
* Class [Bitmap](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
