D2D1_DC_INITIALIZE_MODE Enumeration

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         ,
  D2D1_DC_INITIALIZE_MODE_CLEAR        ,
  D2D1_DC_INITIALIZE_MODE_FORCE_DWORD
} ;

Constants

D2D1_DC_INITIALIZE_MODE_COPY The current contents of the render target are copied to the device context when it is initialized.
D2D1_DC_INITIALIZE_MODE_CLEAR The device context is cleared to transparent black when it is initialized.
D2D1_DC_INITIALIZE_MODE_FORCE_DWORD

Remarks

Use this enumeration with the ID2D1GdiInteropRenderTarget::GetDC method to specify how the device context is initialized for GDI rendering.

Requirements

   
Windows version Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only] Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Header d2d1.h

See Also

ID2D1GdiInteropRenderTarget::GetDC