# C1.Util.DX.Direct2D.BitmapBrush1.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_BitmapBrush1_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_BitmapBrush1_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush1_Create_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_Bitmap1_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.Bitmap1)">Create(DeviceContext, Bitmap1)</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 BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(deviceContext As DeviceContext, bitmap As Bitmap1) As BitmapBrush1</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.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.DeviceContext.html">DeviceContext</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap1.html">Bitmap1</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.BitmapBrush1.html">BitmapBrush1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_BitmapBrush1_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush1_Create_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_Bitmap1_C1_Util_DX_Direct2D_BitmapBrushProperties1_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.Bitmap1,C1.Util.DX.Direct2D.BitmapBrushProperties1)">Create(DeviceContext, Bitmap1, BitmapBrushProperties1)</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 BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap, BitmapBrushProperties1 bitmapBrushProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(deviceContext As DeviceContext, bitmap As Bitmap1, bitmapBrushProperties As BitmapBrushProperties1) As BitmapBrush1</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.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.DeviceContext.html">DeviceContext</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap1.html">Bitmap1</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.BitmapBrushProperties1.html">BitmapBrushProperties1</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.BitmapBrush1.html">BitmapBrush1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_BitmapBrush1_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush1_Create_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_Bitmap1_C1_Util_DX_Direct2D_BrushProperties_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.Bitmap1,C1.Util.DX.Direct2D.BrushProperties)">Create(DeviceContext, Bitmap1, 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 BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap, BrushProperties brushProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(deviceContext As DeviceContext, bitmap As Bitmap1, brushProperties As BrushProperties) As BitmapBrush1</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.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.DeviceContext.html">DeviceContext</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap1.html">Bitmap1</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.BitmapBrush1.html">BitmapBrush1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_BitmapBrush1_Create_" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_BitmapBrush1_Create_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_Bitmap1_System_Nullable_C1_Util_DX_Direct2D_BitmapBrushProperties1__System_Nullable_C1_Util_DX_Direct2D_BrushProperties__" data-uid="C1.Util.DX.Direct2D.BitmapBrush1.Create(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.Bitmap1,System.Nullable{C1.Util.DX.Direct2D.BitmapBrushProperties1},System.Nullable{C1.Util.DX.Direct2D.BrushProperties})">Create(DeviceContext, Bitmap1, BitmapBrushProperties1?, 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 BitmapBrush1 Create(DeviceContext deviceContext, Bitmap1 bitmap, BitmapBrushProperties1? bitmapBrushProperties, BrushProperties? brushProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(deviceContext As DeviceContext, bitmap As Bitmap1, bitmapBrushProperties As BitmapBrushProperties1?, brushProperties As BrushProperties?) As BitmapBrush1</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.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.DeviceContext.html">DeviceContext</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap1.html">Bitmap1</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.BitmapBrushProperties1.html">BitmapBrushProperties1</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.BitmapBrush1.html">BitmapBrush1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
