D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS enumeration (d2d1.h)

Specifies additional features supportable by a compatible render target when it is created. This enumeration allows a bitwise combination of its member values.

Syntax

typedef enum D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS {
  D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE = 0x00000000,
  D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE = 0x00000001,
  D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE
Value: 0x00000000
The render target supports no additional features.
D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE
Value: 0x00000001
The render target supports interoperability with the Windows Graphics Device Interface (GDI).
D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD
Value: 0xffffffff

Remarks

Use this enumeration when creating a compatible render target with the CreateCompatibleRenderTarget method. For more information about compatible render targets, see the Render Targets Overview.

The D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE option may only be requested if the parent render target was created with D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE (for most render targets) or D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE (for render targets created by the CreateCompatibleRenderTarget method).

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]
Header d2d1.h

See also

CreateCompatibleRenderTarget

Render Targets Overview