HwndRenderTargetProperties function (d2d1helper.h)
Creates a D2D1_HWND_RENDER_TARGET_PROPERTIES structure.
Syntax
D2D1_HWND_RENDER_TARGET_PROPERTIES HwndRenderTargetProperties(
[in] HWND hwnd,
[in] D2D1_SIZE_U pixelSize,
[in] D2D1_PRESENT_OPTIONS presentOptions
);
Parameters
[in] hwnd
Type: HWND
The HWND to which the render target issues the output from its drawing commands.
[in] pixelSize
Type: D2D1_SIZE_U
The size of the render target, in pixels. The default value is a D2D1_SIZE_U that has a width and height of 0.
[in] presentOptions
Type: D2D1_PRESENT_OPTIONS
A value that specifies whether the render target retains the frame after it is presented and whether the render target waits for the device to refresh before presenting. The default value is D2D1_PRESENT_OPTIONS_NONE.
Return value
Type: D2D1_HWND_RENDER_TARGET_PROPERTIES
A structure that contains the HWND, pixel size, and presentation options for an ID2D1HwndRenderTarget.
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 |