System::Drawing::Image::GetPixelFormatSize method

Image::GetPixelFormatSize 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)
ParameterTypeDescription
pixfmtImaging::PixelFormatA pixel format for which to determine the size

ReturnValue

The color depth in pixfmt

See Also