[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Device1

Class Device1

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1Device1

[Guid("d21768e1-23a4-4823-a14b-7c3eba85d658")]
public class Device1 : Device, IDisposable, IUnknown
Inheritance
object
Device1
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Device1(IntPtr)

Initializes a new instance of the Device1 class.

public Device1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(Factory2, Device)

Initializes a new instance of the Device1 class.

public static Device1 Create(Factory2 factory, Device device)

Parameters

factory Factory2

The Factory2 object used when creating the Device1.

device Device

The Device object used when creating the Device1.

Returns

Device1

CreateDeviceContext1(DeviceContextOptions)

HRESULT ID2D1Device1::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out, Fast] ID2D1DeviceContext1** deviceContext1)

public DeviceContext1 CreateDeviceContext1(DeviceContextOptions options)

Parameters

options DeviceContextOptions

Returns

DeviceContext1

GetRenderingPriority()

D2D1_RENDERING_PRIORITY ID2D1Device1::GetRenderingPriority()

public RenderingPriority GetRenderingPriority()

Returns

RenderingPriority

SetRenderingPriority(RenderingPriority)

void ID2D1Device1::SetRenderingPriority([In] D2D1_RENDERING_PRIORITY renderingPriority)

public void SetRenderingPriority(RenderingPriority renderingPriority)

Parameters

renderingPriority RenderingPriority

Operators

explicit operator Device1(IntPtr)

Performs an explicit conversion from System.IntPtr to Device1.

public static explicit operator Device1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Device1