## Image::GetPixelFormatSize method


返回在指定像素格式中表示颜色深度所使用的位数。

```cpp
static int System::Drawing::Image::GetPixelFormatSize(Imaging::PixelFormat pixfmt)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixfmt | Imaging::PixelFormat | 用于确定大小的像素格式 |

### ReturnValue

在 **pixfmt** 中的颜色深度

## 另见

* Enum [PixelFormat](../../../system.drawing.imaging/pixelformat/)
* Class [Image](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Font for C++](../../../)
