Export (0) Print
Expand All

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_COPY   = 0,
  D2D1_DC_INITIALIZE_MODE_CLEAR  = 1
} D2D1_DC_INITIALIZE_MODE;

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.

Remarks

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

Requirements

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]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

See also

ID2D1GdiInteropRenderTarget::GetDC

 

 

Community Additions

ADD
Show:
© 2014 Microsoft