# C1.Win.Document.Util.C1DXGraphics.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1DXGraphics__ctor_" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor*">C1DXGraphics Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1DXGraphics__ctor_" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor*"></a>
<h4 id="C1_Win_Document_Util_C1DXGraphics__ctor_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_Device_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_WIC_ImagingFactory2_C1_Util_DX_DirectWrite_Factory_" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.Device,C1.Util.DX.Direct2D.Factory1,C1.Util.DX.WIC.ImagingFactory2,C1.Util.DX.DirectWrite.Factory)">C1DXGraphics(DeviceContext, Device, Factory1, ImagingFactory2, Factory)</h4>
<div class="markdown level1 summary"><p>For internal use.
Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1DXGraphics.html">C1DXGraphics</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1DXGraphics(DeviceContext context, Device device, Factory1 factory, ImagingFactory2 imagingFactory, Factory dwFactoty)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(context As DeviceContext, device As Device, factory As Factory1, imagingFactory As ImagingFactory2, dwFactoty As Factory)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">DeviceContext</span></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Device</span></td>
      <td><span class="parametername">device</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Factory1</span></td>
      <td><span class="parametername">factory</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">ImagingFactory2</span></td>
      <td><span class="parametername">imagingFactory</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Factory</span></td>
      <td><span class="parametername">dwFactoty</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Document_Util_C1DXGraphics__ctor_" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor*"></a>
<h4 id="C1_Win_Document_Util_C1DXGraphics__ctor_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_Device_" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.Device)">C1DXGraphics(DeviceContext, Device)</h4>
<div class="markdown level1 summary"><p>For internal use.
Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1DXGraphics.html">C1DXGraphics</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1DXGraphics(DeviceContext context, Device device)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(context As DeviceContext, device As Device)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">DeviceContext</span></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Device</span></td>
      <td><span class="parametername">device</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Document_Util_C1DXGraphics__ctor_" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor*"></a>
<h4 id="C1_Win_Document_Util_C1DXGraphics__ctor" data-uid="C1.Win.Document.Util.C1DXGraphics.#ctor">C1DXGraphics()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1DXGraphics.html">C1DXGraphics</a> class.
Instance of the class performs all drawing to the internal image object.
Call BeginGetImage/EndGetImage() methods to start/finish drawing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1DXGraphics()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>
</div>
