HwndRenderTargetProperties function
Creates a D2D1_HWND_RENDER_TARGET_PROPERTIES structure.
Syntax
D2D1_HWND_RENDER_TARGET_PROPERTIES HwndRenderTargetProperties( _In_ HWND hwnd, _In_ D2D1_SIZE_U pixelSize = D2D1::Size(static_cast<UINT>(0), static_cast<UINT>(0)), _In_ D2D1_PRESENT_OPTIONS presentOptions = D2D1_PRESENT_OPTIONS_NONE );
Parameters
- hwnd [in]
-
Type: HWND
The HWND to which the render target issues the output from its drawing commands.
- pixelSize [in]
-
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.
- presentOptions [in]
-
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
|
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 |
|