GetPixelFormatSize()

Image::GetPixelFormatSize(Imaging::PixelFormat) method

Returns the number of bits used to represent the color depth in the specified pixel format.

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

Arguments

ParameterTypeDescription
pixfmtImaging::PixelFormatA pixel format for which to determine the size

Return Value

The color depth in pixfmt

See Also