## Image.GetPixelFormatSize method

Returns the color depth, in number of bits per pixel, of the specified pixel format.

```csharp
public static int GetPixelFormatSize(PixelFormat pixfmt)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pixfmt | PixelFormat | The PixelFormat member that specifies the format for which to find the size. |

### Return Value

The color depth of the specified pixel format.

### See Also

* enum [PixelFormat](../../../system.drawing.imaging/pixelformat/)
* class [Image](../)
* namespace [System.Drawing](../../image/)
* assembly [Aspose.Drawing](../../../)


