## Image::GetPixelFormatSize method


Returns the number of bits used to represent the color depth in the specified pixel format.

```cpp
static int System::Drawing::Image::GetPixelFormatSize(Imaging::PixelFormat pixfmt)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pixfmt | Imaging::PixelFormat | A pixel format for which to determine the size |

### ReturnValue

The color depth in **pixfmt**

## See Also

* Enum [PixelFormat](../../../system.drawing.imaging/pixelformat/)
* Class [Image](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
