# C1.Util.DX.Direct2D.GradientStopCollection.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_GradientStopCollection_Create_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_GradientStopCollection_Create_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[])">Create(RenderTarget, GradientStop[])</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, a Gamma StandardRgb, and ExtendMode.Clamp.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop()) As GradientStopCollection</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.GradientStop.html">GradientStop</a>[]</td>
      <td><span class="parametername">gradientStops</span></td>
      <td><p>A pointer to an array of D2D1_GRADIENT_STOP structures.</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.GradientStopCollection.html">GradientStopCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_GradientStopCollection_Create_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_ExtendMode_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[],C1.Util.DX.Direct2D.ExtendMode)">Create(RenderTarget, GradientStop[], ExtendMode)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, color Gamma.StandardRgb, and extend mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, ExtendMode extendMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop(), extendMode As ExtendMode) As GradientStopCollection</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.GradientStop.html">GradientStop</a>[]</td>
      <td><span class="parametername">gradientStops</span></td>
      <td><p>A pointer to an array of D2D1_GRADIENT_STOP structures.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.ExtendMode.html">ExtendMode</a></td>
      <td><span class="parametername">extendMode</span></td>
      <td><p>The behavior of the gradient outside the [0,1] normalized range.</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.GradientStopCollection.html">GradientStopCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_GradientStopCollection_Create_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_Gamma_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[],C1.Util.DX.Direct2D.Gamma)">Create(RenderTarget, GradientStop[], Gamma)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop(), colorInterpolationGamma As Gamma) As GradientStopCollection</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.GradientStop.html">GradientStop</a>[]</td>
      <td><span class="parametername">gradientStops</span></td>
      <td><p>A pointer to an array of D2D1_GRADIENT_STOP structures.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Gamma.html">Gamma</a></td>
      <td><span class="parametername">colorInterpolationGamma</span></td>
      <td><p>The space in which color interpolation between the gradient stops is performed.</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.GradientStopCollection.html">GradientStopCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_GradientStopCollection_Create_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_Gamma_C1_Util_DX_Direct2D_ExtendMode_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[],C1.Util.DX.Direct2D.Gamma,C1.Util.DX.Direct2D.ExtendMode)">Create(RenderTarget, GradientStop[], Gamma, ExtendMode)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, color interpolation gamma, and extend mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GradientStopCollection Create(RenderTarget renderTarget, GradientStop[] gradientStops, Gamma colorInterpolationGamma, ExtendMode extendMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, gradientStops As GradientStop(), colorInterpolationGamma As Gamma, extendMode As ExtendMode) As GradientStopCollection</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.GradientStop.html">GradientStop</a>[]</td>
      <td><span class="parametername">gradientStops</span></td>
      <td><p>A pointer to an array of D2D1_GRADIENT_STOP structures.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Gamma.html">Gamma</a></td>
      <td><span class="parametername">colorInterpolationGamma</span></td>
      <td><p>The space in which color interpolation between the gradient stops is performed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.ExtendMode.html">ExtendMode</a></td>
      <td><span class="parametername">extendMode</span></td>
      <td><p>The behavior of the gradient outside the [0,1] normalized range.</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.GradientStopCollection.html">GradientStopCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
