# C1.Util.DX.Direct2D.BitmapBrush.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_BitmapBrush_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_BitmapBrush_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_Bitmap_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.Bitmap)">Create(RenderTarget, Bitmap)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.BitmapBrush.html">BitmapBrush</a> from the specified bitmap.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap) As BitmapBrush</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.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap.html">Bitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The bitmap contents of the new brush.</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.BitmapBrush.html">BitmapBrush</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_BitmapBrush_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_Bitmap_C1_Util_DX_Direct2D_BitmapBrushProperties_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.Bitmap,C1.Util.DX.Direct2D.BitmapBrushProperties)">Create(RenderTarget, Bitmap, BitmapBrushProperties)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.BitmapBrush.html">BitmapBrush</a> from the specified bitmap.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties bitmapBrushProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap, bitmapBrushProperties As BitmapBrushProperties) As BitmapBrush</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.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap.html">Bitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The bitmap contents of the new brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.BitmapBrushProperties.html">BitmapBrushProperties</a></td>
      <td><span class="parametername">bitmapBrushProperties</span></td>
      <td><p>The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the <a class="xref" href="C1.Util.DX.Direct2D.ExtendMode.html#C1_Util_DX_Direct2D_ExtendMode_Clamp">Clamp</a> horizontal and vertical extend modes and the <a class="xref" href="C1.Util.DX.Direct2D.BitmapInterpolationMode.html#C1_Util_DX_Direct2D_BitmapInterpolationMode_Linear">Linear</a> interpolation mode.</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.BitmapBrush.html">BitmapBrush</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_BitmapBrush_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_Bitmap_C1_Util_DX_Direct2D_BrushProperties_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.Bitmap,C1.Util.DX.Direct2D.BrushProperties)">Create(RenderTarget, Bitmap, BrushProperties)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.BitmapBrush.html">BitmapBrush</a> from the specified bitmap.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BrushProperties brushProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap, brushProperties As BrushProperties) As BitmapBrush</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.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap.html">Bitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The bitmap contents of the new brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.BrushProperties.html">BrushProperties</a></td>
      <td><span class="parametername">brushProperties</span></td>
      <td><p>The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix.</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.BitmapBrush.html">BitmapBrush</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_BitmapBrush_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_Bitmap_System_Nullable_C1_Util_DX_Direct2D_BitmapBrushProperties__System_Nullable_C1_Util_DX_Direct2D_BrushProperties__" data-uid="C1.Util.DX.Direct2D.BitmapBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.Bitmap,System.Nullable{C1.Util.DX.Direct2D.BitmapBrushProperties},System.Nullable{C1.Util.DX.Direct2D.BrushProperties})">Create(RenderTarget, Bitmap, BitmapBrushProperties?, BrushProperties?)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.BitmapBrush.html">BitmapBrush</a> from the specified bitmap.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BitmapBrush Create(RenderTarget renderTarget, Bitmap bitmap, BitmapBrushProperties? bitmapBrushProperties, BrushProperties? brushProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, bitmap As Bitmap, bitmapBrushProperties As BitmapBrushProperties?, brushProperties As BrushProperties?) As BitmapBrush</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.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap.html">Bitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The bitmap contents of the new brush.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.BitmapBrushProperties.html">BitmapBrushProperties</a>?</td>
      <td><span class="parametername">bitmapBrushProperties</span></td>
      <td><p>The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the <a class="xref" href="C1.Util.DX.Direct2D.ExtendMode.html#C1_Util_DX_Direct2D_ExtendMode_Clamp">Clamp</a> horizontal and vertical extend modes and the <a class="xref" href="C1.Util.DX.Direct2D.BitmapInterpolationMode.html#C1_Util_DX_Direct2D_BitmapInterpolationMode_Linear">Linear</a> interpolation mode.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.BrushProperties.html">BrushProperties</a>?</td>
      <td><span class="parametername">brushProperties</span></td>
      <td><p>The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix.</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.BitmapBrush.html">BitmapBrush</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
