## Bitmap::SetPixel method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| x | int | 像素的 X 坐标 |
| y | int | 像素的 Y 坐标 |
| 颜色 | Color | 要设置的新颜色 |

## 另见

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