BitmapProperties function
Creates a D2D1_BITMAP_PROPERTIES structure.
Syntax
D2D1_BITMAP_PROPERTIES BitmapProperties(
const D2D1_PIXEL_FORMAT &pixelFormat = D2D1::PixelFormat(),
FLOAT dpiX = 96.0f,
FLOAT dpiY = 96.0f
);
Parameters
- pixelFormat [ref]
-
Type: const D2D1_PIXEL_FORMAT
The bitmap's pixel format and alpha mode. The default value is a D2D1_PIXEL_FORMAT with a format of DXGI_FORMAT_UNKNOWN and an alphaMode of D2D1_ALPHA_MODE_UNKNOWN. For more information about pixel formats, see Supported Pixel Formats and Alpha Modes.
- dpiX
-
Type: FLOAT
The horizontal dpi of the bitmap. The default value is 96.0f.
- dpiY
-
Type: FLOAT
The vertical dpi of the bitmap. The default value is 96.0f.
Return value
Type: D2D1_BITMAP_PROPERTIES
A structure that describes the pixel format and dpi of a bitmap.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also