# C1.Util.DX.ColorF.FromArgb

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_ColorF_FromArgb_" data-uid="C1.Util.DX.ColorF.FromArgb*">FromArgb Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_ColorF_FromArgb_" data-uid="C1.Util.DX.ColorF.FromArgb*"></a>
<h4 id="C1_Util_DX_ColorF_FromArgb_System_Int32_" data-uid="C1.Util.DX.ColorF.FromArgb(System.Int32)">FromArgb(int)</h4>
<div class="markdown level1 summary"><p>Converts the color from an ARGB integer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ColorF FromArgb(int argb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromArgb(argb As Integer) As ColorF</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">argb</span></td>
      <td><p>A packed integer containing all four color components in ARGB order</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.ColorF.html">ColorF</a></td>
      <td><p>A color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_ColorF_FromArgb_" data-uid="C1.Util.DX.ColorF.FromArgb*"></a>
<h4 id="C1_Util_DX_ColorF_FromArgb_System_Int32_System_Int32_System_Int32_" data-uid="C1.Util.DX.ColorF.FromArgb(System.Int32,System.Int32,System.Int32)">FromArgb(int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a ColorF structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly fully opaque.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ColorF FromArgb(int red, int green, int blue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromArgb(red As Integer, green As Integer, blue As Integer) As ColorF</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">red</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">green</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">blue</span></td>
      <td></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.ColorF.html">ColorF</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_ColorF_FromArgb_" data-uid="C1.Util.DX.ColorF.FromArgb*"></a>
<h4 id="C1_Util_DX_ColorF_FromArgb_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Util.DX.ColorF.FromArgb(System.Int32,System.Int32,System.Int32,System.Int32)">FromArgb(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a ColorF structure from the four ARGB component (alpha, red, green, and blue) values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ColorF FromArgb(int alpha, int red, int green, int blue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromArgb(alpha As Integer, red As Integer, green As Integer, blue As Integer) As ColorF</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">alpha</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">red</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">green</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">blue</span></td>
      <td></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.ColorF.html">ColorF</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
