Share via


D2D1_BITMAP_PROPERTIES1-Struktur (d2d1_1.h)

Diese Struktur ermöglicht die Erstellung eines ID2D1Bitmap1 mit Verfügbaren Bitmapoptionen und Farbkontextinformationen.

Syntax

typedef struct D2D1_BITMAP_PROPERTIES1 {
  D2D1_PIXEL_FORMAT   pixelFormat;
  FLOAT               dpiX;
  FLOAT               dpiY;
  D2D1_BITMAP_OPTIONS bitmapOptions;
  ID2D1ColorContext   *colorContext;
} D2D1_BITMAP_PROPERTIES1;

Member

pixelFormat

Typ: D2D1_PIXEL_FORMAT

Das DXGI-Format und der Alphamodus, mit dem die Bitmap erstellt werden soll.

dpiX

Typ: FLOAT

Die Bitmap-DPI in x-Richtung.

dpiY

Typ: FLOAT

Die Bitmap-DPI in y-Richtung.

bitmapOptions

Typ: D2D1_BITMAP_OPTIONS

Die speziellen Erstellungsoptionen der Bitmap.

colorContext

Typ: ID2D1ColorContext*

Die optional angegebenen Farbkontextinformationen.

Hinweise

Wenn sowohl dpiX als auch dpiY 0 sind, wird die DPI der Bitmap auf die Desktop-DPI festgelegt, wenn der Gerätekontext ein Fensterkontext ist, oder 96 dpi für einen anderen Gerätekontext.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 8 und Plattformupdate für Windows 7 [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2012 und Plattformupdate für Windows Server 2008 R2 [Desktop-Apps | UWP-Apps]
Kopfzeile d2d1_1.h

Weitere Informationen

ID2D1DeviceContext::CreateBitmap