Freigeben über


Image.GetPixelFormatSize-Methode

Gibt die Farbtiefe des angegebenen Pixelformats in der Anzahl der Bits pro Pixel zurück.

Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)

Syntax

'Declaration
Public Shared Function GetPixelFormatSize ( _
    pixfmt As PixelFormat _
) As Integer
'Usage
Dim pixfmt As PixelFormat
Dim returnValue As Integer

returnValue = Image.GetPixelFormatSize(pixfmt)
public static int GetPixelFormatSize (
    PixelFormat pixfmt
)
public:
static int GetPixelFormatSize (
    PixelFormat pixfmt
)
public static int GetPixelFormatSize (
    PixelFormat pixfmt
)
public static function GetPixelFormatSize (
    pixfmt : PixelFormat
) : int

Parameter

  • pixfmt
    Der PixelFormat-Member, der das Format angibt, für das die Größe gesucht werden soll.

Rückgabewert

Die Farbtiefe des angegebenen Pixelformats.

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

Image-Klasse
Image-Member
System.Drawing-Namespace