D2D1_BITMAP_PROPERTIES1 structure (d2d1_1.h)
This structure allows a ID2D1Bitmap1 to be created with bitmap options and color context information available.
Syntax
typedef struct D2D1_BITMAP_PROPERTIES1 {
D2D1_PIXEL_FORMAT pixelFormat;
FLOAT dpiX;
FLOAT dpiY;
D2D1_BITMAP_OPTIONS bitmapOptions;
ID2D1ColorContext *colorContext;
} D2D1_BITMAP_PROPERTIES1;
Members
pixelFormat
Type: D2D1_PIXEL_FORMAT
The DXGI format and alpha mode to create the bitmap with.
dpiX
Type: FLOAT
The bitmap dpi in the x direction.
dpiY
Type: FLOAT
The bitmap dpi in the y direction.
bitmapOptions
Type: D2D1_BITMAP_OPTIONS
The special creation options of the bitmap.
colorContext
Type: ID2D1ColorContext*
The optionally specified color context information.
Remarks
If both dpiX and dpiY are 0, the dpi of the bitmap will be set to the desktop dpi if the device context is a windowed context, or 96 dpi for any other device context.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Header | d2d1_1.h |