Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_COPYValue: 0 The current contents of the render target are copied to the device context when it is initialized. | 
| D2D1_DC_INITIALIZE_MODE_CLEARValue: 1 The device context is cleared to transparent black when it is initialized. | 
| D2D1_DC_INITIALIZE_MODE_FORCE_DWORDValue: 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 |