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

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static int GetPixelFormatSize(
	PixelFormat pixfmt
)
Visual Basic (Declaration)
Public Shared Function GetPixelFormatSize ( _
	pixfmt As PixelFormat _
) As Integer
Visual C++
public:
static int GetPixelFormatSize(
	PixelFormat pixfmt
)

Parameters

pixfmt
Type: System.Drawing.Imaging..::.PixelFormat
The PixelFormat member that specifies the format for which to find the size.

Return Value

The color depth of the specified pixel format.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also