Share via


BitmapProperties-Funktion (d2d1helper.h)

Erstellt eine D2D1_BITMAP_PROPERTIES-Struktur .

Syntax

D2D1_BITMAP_PROPERTIES BitmapProperties(
  [ref] const D2D1_PIXEL_FORMAT & pixelFormat,
        FLOAT                     dpiX,
        FLOAT                     dpiY
);

Parameter

[ref] pixelFormat

Typ: const D2D1_PIXEL_FORMAT

Das Pixelformat und den Alphamodus der Bitmap. Der Standardwert ist eine D2D1_PIXEL_FORMAT im FormatDXGI_FORMAT_UNKNOWN und alphaModeD2D1_ALPHA_MODE_UNKNOWN. Weitere Informationen zu Pixelformaten finden Sie unter Unterstützte Pixelformate und Alphamodi.

dpiX

Typ: FLOAT

Der horizontale DPI-Wert der Bitmap. Der Standardwert ist 96,0f.

dpiY

Typ: FLOAT

Der vertikale DPI-Wert der Bitmap. Der Standardwert ist 96,0f.

Rückgabewert

Typ: D2D1_BITMAP_PROPERTIES

Eine Struktur, die das Pixelformat und dpi einer Bitmap beschreibt.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile d2d1helper.h
Bibliothek D2d1.lib
DLL D2d1.dll

Weitere Informationen

ID2D1Bitmap