Table of Contents

Enum DeviceContextInitializeMode

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Specifies how a device context is initialized for GDI rendering when it is retrieved from the render target.

public enum DeviceContextInitializeMode

Fields

Clear = 1

The device context is cleared to transparent black when it is initialized.

Copy = 0

The current contents of the render target are copied to the device context when it is initialized.

Remarks

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