# C1.Util.DX.Direct2D.Device

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_Device" data-uid="C1.Util.DX.Direct2D.Device" class="text-break">Device Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1Device</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.Direct2D.Resource.html">Resource</a></div>
    <div class="level5"><span class="xref">Device</span></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.Direct2D.Device1.html">Device1</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_Device_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;47dd575d-ac05-4cdd-8049-9b02cd16f44c&quot;)]
public class Device : Resource, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;47dd575d-ac05-4cdd-8049-9b02cd16f44c&quot;)&gt;
Public Class Device
    Inherits Resource
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.Device.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.-ctor.html#C1_Util_DX_Direct2D_Device__ctor_System_IntPtr_">Device(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Device.html">Device</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_ClearResources_System_Int32_" data-uid="C1.Util.DX.Direct2D.Device.ClearResources(System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.ClearResources.html#C1_Util_DX_Direct2D_Device_ClearResources_System_Int32_">ClearResources(int)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1Device::ClearResources([In] unsigned int millisecondsSinceUse)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_Create_C1_Util_DX_DXGI_Device_" data-uid="C1.Util.DX.Direct2D.Device.Create(C1.Util.DX.DXGI.Device)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.Create.html#C1_Util_DX_Direct2D_Device_Create_C1_Util_DX_DXGI_Device_">Create(Device)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Device.html">Device</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_Create_C1_Util_DX_DXGI_Device_C1_Util_DX_Direct2D_CreationProperties_" data-uid="C1.Util.DX.Direct2D.Device.Create(C1.Util.DX.DXGI.Device,C1.Util.DX.Direct2D.CreationProperties)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.Create.html#C1_Util_DX_Direct2D_Device_Create_C1_Util_DX_DXGI_Device_C1_Util_DX_Direct2D_CreationProperties_">Create(Device, CreationProperties)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Device.html">Device</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_DXGI_Device_" data-uid="C1.Util.DX.Direct2D.Device.Create(C1.Util.DX.Direct2D.Factory1,C1.Util.DX.DXGI.Device)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.Create.html#C1_Util_DX_Direct2D_Device_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_DXGI_Device_">Create(Factory1, Device)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Device.html">Device</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_CreateDeviceContext_C1_Util_DX_Direct2D_DeviceContextOptions_" data-uid="C1.Util.DX.Direct2D.Device.CreateDeviceContext(C1.Util.DX.Direct2D.DeviceContextOptions)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.CreateDeviceContext.html#C1_Util_DX_Direct2D_Device_CreateDeviceContext_C1_Util_DX_Direct2D_DeviceContextOptions_">CreateDeviceContext(DeviceContextOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1Device::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out, Fast] ID2D1DeviceContext** deviceContext)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_CreatePrintControl_C1_Util_DX_WIC_ImagingFactory_System_IntPtr_System_Nullable_C1_Util_DX_Direct2D_PrintControlProperties__" data-uid="C1.Util.DX.Direct2D.Device.CreatePrintControl(C1.Util.DX.WIC.ImagingFactory,System.IntPtr,System.Nullable{C1.Util.DX.Direct2D.PrintControlProperties})">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.CreatePrintControl.html#C1_Util_DX_Direct2D_Device_CreatePrintControl_C1_Util_DX_WIC_ImagingFactory_System_IntPtr_System_Nullable_C1_Util_DX_Direct2D_PrintControlProperties__">CreatePrintControl(ImagingFactory, nint, PrintControlProperties?)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1Device::CreatePrintControl([In] IWICImagingFactory* wicFactory,[In] IPrintDocumentPackageTarget* documentTarget,[In, Optional] const D2D1_PRINT_CONTROL_PROPERTIES* printControlProperties,[Out, Fast] ID2D1PrintControl** printControl)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_GetMaximumTextureMemory" data-uid="C1.Util.DX.Direct2D.Device.GetMaximumTextureMemory">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.GetMaximumTextureMemory.html#C1_Util_DX_Direct2D_Device_GetMaximumTextureMemory">GetMaximumTextureMemory()</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned longlong ID2D1Device::GetMaximumTextureMemory()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_SetMaximumTextureMemory_System_Int64_" data-uid="C1.Util.DX.Direct2D.Device.SetMaximumTextureMemory(System.Int64)">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.SetMaximumTextureMemory.html#C1_Util_DX_Direct2D_Device_SetMaximumTextureMemory_System_Int64_">SetMaximumTextureMemory(long)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1Device::SetMaximumTextureMemory([In] unsigned longlong maximumInBytes)</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_Device_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_Device" data-uid="C1.Util.DX.Direct2D.Device.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.Device">
          <a class="xref" href="C1.Util.DX.Direct2D.Device.op_Explicit.html#C1_Util_DX_Direct2D_Device_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_Device">explicit operator Device(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a> to <a class="xref" href="C1.Util.DX.Direct2D.Device.html">Device</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
