Table of Contents

Class Device2

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("a44472e1-8dfb-4e60-8492-6e2861c9ca8b")]
public class Device2 : Device1
Inheritance
Device2
Derived
Inherited Members

Constructors

Device2(Factory3, Device)

Initializes a new instance of the Device2 class.

public Device2(Factory3 factory, Device device)

Parameters

factory Factory3

The Factory3 object used when creating the Device2.

device Device

The SharpDX.DXGI.Device object used when creating the Device2.

Remarks

Each call to CreateDevice returns a unique Device2 object.The SharpDX.DXGI.Device object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device.

Device2(nint)

public Device2(nint nativePtr)

Parameters

nativePtr nint

Properties

DxgiDevice

Returns the DXGI device associated with this Direct2D device.

public Device DxgiDevice { get; }

Property Value

Device

Methods

FlushDeviceContexts(Bitmap)

Flush all device contexts that reference a given bitmap.

public void FlushDeviceContexts(Bitmap bitmap)

Parameters

bitmap Bitmap

The bitmap, created on this device, for which all referencing device contexts will be flushed.

Operators

explicit operator Device2(nint)

public static explicit operator Device2(nint nativePtr)

Parameters

nativePtr nint

Returns

Device2