[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Device

Class Device

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

ID2D1Device

[Guid("47dd575d-ac05-4cdd-8049-9b02cd16f44c")]
public class Device : Resource, IDisposable, IUnknown
Inheritance
object
Device
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

Device(IntPtr)

Initializes a new instance of the Device class.

public Device(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

ClearResources(int)

void ID2D1Device::ClearResources([In] unsigned int millisecondsSinceUse)

public void ClearResources(int millisecondsSinceUse)

Parameters

millisecondsSinceUse int

Create(Factory1, Device)

Initializes a new instance of the Device class.

public static Device Create(Factory1 factory, Device device)

Parameters

factory Factory1

The Factory1 object used when creating the Device.

device Device

The Device object used when creating the Device.

Returns

Device

Remarks

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

Create(Device, CreationProperties)

Initializes a new instance of the Device class.

public static Device Create(Device device, CreationProperties creationProperties)

Parameters

device Device

The device.

creationProperties CreationProperties

The creation properties.

Returns

Device

Create(Device)

Initializes a new instance of the Device class.

public static Device Create(Device device)

Parameters

device Device

The device.

Returns

Device

CreateDeviceContext(DeviceContextOptions)

HRESULT ID2D1Device::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out, Fast] ID2D1DeviceContext** deviceContext)

public DeviceContext CreateDeviceContext(DeviceContextOptions options)

Parameters

options DeviceContextOptions

Returns

DeviceContext

CreatePrintControl(ImagingFactory, IntPtr, PrintControlProperties?)

HRESULT ID2D1Device::CreatePrintControl([In] IWICImagingFactory* wicFactory,[In] IPrintDocumentPackageTarget* documentTarget,[In, Optional] const D2D1_PRINT_CONTROL_PROPERTIES* printControlProperties,[Out, Fast] ID2D1PrintControl** printControl)

public PrintControl CreatePrintControl(ImagingFactory wicFactory, IntPtr documentTargetPtr, PrintControlProperties? printControlPropertiesRef)

Parameters

wicFactory ImagingFactory
documentTargetPtr System.IntPtr
printControlPropertiesRef PrintControlProperties?

Returns

PrintControl

GetMaximumTextureMemory()

unsigned longlong ID2D1Device::GetMaximumTextureMemory()

public long GetMaximumTextureMemory()

Returns

long

SetMaximumTextureMemory(long)

void ID2D1Device::SetMaximumTextureMemory([In] unsigned longlong maximumInBytes)

public void SetMaximumTextureMemory(long maximumInBytes)

Parameters

maximumInBytes long

Operators

explicit operator Device(IntPtr)

Performs an explicit conversion from System.IntPtr to Device.

public static explicit operator Device(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Device