System.Drawing.Image.GetPixelFormatSize Method

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

Syntax

public static int GetPixelFormatSize (System.Drawing.Imaging.PixelFormat pixfmt)

Parameters

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

Returns

The color depth of the specified pixel format.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0