[]
ID2D1Device
[Guid("47dd575d-ac05-4cdd-8049-9b02cd16f44c")]
public class Device : Resource, IDisposable, IUnknown
Initializes a new instance of the Device class.
public Device(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
void ID2D1Device::ClearResources([In] unsigned int millisecondsSinceUse)
public void ClearResources(int millisecondsSinceUse)
millisecondsSinceUse
intInitializes a new instance of the Device class.
public static Device Create(Factory1 factory, Device device)
Each call to CreateDevice returns a unique Device object.The Device object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device.
Initializes a new instance of the Device class.
public static Device Create(Device device, CreationProperties creationProperties)
device
DeviceThe device.
creationProperties
CreationPropertiesThe creation properties.
Initializes a new instance of the Device class.
public static Device Create(Device device)
device
DeviceThe device.
HRESULT ID2D1Device::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out, Fast] ID2D1DeviceContext** deviceContext)
public DeviceContext CreateDeviceContext(DeviceContextOptions options)
options
DeviceContextOptionsHRESULT 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)
wicFactory
ImagingFactorydocumentTargetPtr
System.IntPtrprintControlPropertiesRef
PrintControlProperties?unsigned longlong ID2D1Device::GetMaximumTextureMemory()
public long GetMaximumTextureMemory()
void ID2D1Device::SetMaximumTextureMemory([In] unsigned longlong maximumInBytes)
public void SetMaximumTextureMemory(long maximumInBytes)
maximumInBytes
longPerforms an explicit conversion from System.IntPtr to Device.
public static explicit operator Device(IntPtr nativePointer)
nativePointer
System.IntPtr