## Bitmap::GetPixel method


返回指定像素的颜色。

```cpp
Color System::Drawing::Bitmap::GetPixel(int x, int y)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| x | int | 要返回颜色的像素的 X 坐标 |
| y | int | 要返回颜色的像素的 Y 坐标 |

### ReturnValue

指定像素的颜色

## 另见

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