Image.GetPixelFormatSize(PixelFormat) Metod

Definition

Returnerar färgdjupet, i antal bitar per pixel, för det angivna pixelformatet.

public:
 static int GetPixelFormatSize(System::Drawing::Imaging::PixelFormat pixfmt);
public static int GetPixelFormatSize(System.Drawing.Imaging.PixelFormat pixfmt);
static member GetPixelFormatSize : System.Drawing.Imaging.PixelFormat -> int
Public Shared Function GetPixelFormatSize (pixfmt As PixelFormat) As Integer

Parametrar

pixfmt
PixelFormat

Den PixelFormat medlem som anger det format som storleken ska hittas för.

Returer

Färgdjupet för det angivna pixelformatet.

Gäller för