GetPixelFormatSize function (gdipluspixelformats.h)

The GetPixelFormatSize method returns the number of bits per pixel used by a specified pixel format.

Syntax

UINT GetPixelFormatSize(
  PixelFormat pixfmt
);

Parameters

pixfmt

Type: PixelFormat

A PixelFormat constant that specifies the pixel format to be tested.

Return value

Type: UINT

This method returns the number of bits per pixel used by the specified pixel format.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header gdipluspixelformats.h (include Gdiplus.h)
Library Gdiplus.lib