D2D1_DC_INITIALIZE_MODE enumeration (d2d1.h)
Specifies how a device context is initialized for GDI rendering when it is retrieved from the render target.
Syntax
typedef enum D2D1_DC_INITIALIZE_MODE {
D2D1_DC_INITIALIZE_MODE_COPY = 0,
D2D1_DC_INITIALIZE_MODE_CLEAR = 1,
D2D1_DC_INITIALIZE_MODE_FORCE_DWORD = 0xffffffff
} ;
Constants
D2D1_DC_INITIALIZE_MODE_COPY Value: 0 The current contents of the render target are copied to the device context when it is initialized. |
D2D1_DC_INITIALIZE_MODE_CLEAR Value: 1 The device context is cleared to transparent black when it is initialized. |
D2D1_DC_INITIALIZE_MODE_FORCE_DWORD Value: 0xffffffff |
Remarks
Use this enumeration with the ID2D1GdiInteropRenderTarget::GetDC method to specify how the device context is initialized for GDI rendering.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only] |
Header | d2d1.h |