# C1.Util.DX.Direct2D.RenderTarget.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_RenderTarget_Create_" data-uid="C1.Util.DX.Direct2D.RenderTarget.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_RenderTarget_Create_" data-uid="C1.Util.DX.Direct2D.RenderTarget.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_RenderTarget_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_DXGI_Surface_C1_Util_DX_Direct2D_RenderTargetProperties__" data-uid="C1.Util.DX.Direct2D.RenderTarget.Create(C1.Util.DX.Direct2D.Factory,C1.Util.DX.DXGI.Surface,C1.Util.DX.Direct2D.RenderTargetProperties@)">Create(Factory, Surface, ref RenderTargetProperties)</h4>
<div class="markdown level1 summary"><p>Creates a render target that draws to a DirectX Graphics Infrastructure (DXGI) surface.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static RenderTarget Create(Factory factory, Surface dxgiSurface, ref RenderTargetProperties properties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, dxgiSurface As Surface, ByRef properties As RenderTargetProperties) As RenderTarget</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><a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.Surface.html">Surface</a></td>
      <td><span class="parametername">dxgiSurface</span></td>
      <td><p>The dxgi surface to bind this render target to</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.RenderTargetProperties.html">RenderTargetProperties</a></td>
      <td><span class="parametername">properties</span></td>
      <td><p>The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. For information about supported pixel formats, see  {{Supported Pixel  Formats and Alpha Modes}}.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
