Class PixelFormatExtensions
Contains helper methods for handling PixelFormat values.
Inherited Members
Namespace: ic4
Assembly: ic4dotnet.dll
Syntax
public static class PixelFormatExtensions
Methods
GetBitsPerPixel(PixelFormat)
Returns the bits per pixel of a pixel format.
Declaration
public static int GetBitsPerPixel(this PixelFormat pixelFormat)
Parameters
| Type | Name | Description |
|---|---|---|
| PixelFormat | pixelFormat | A pixel format |
Returns
| Type | Description |
|---|---|
| int | The bits required to store one pixel using the given pixel format. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The bits per pixel for the given format could not be determined. |