BitmapProperties function (d2d1helper.h)

Creates a D2D1_BITMAP_PROPERTIES structure.

Syntax

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

Parameters

[ref] pixelFormat

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

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1helper.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1Bitmap