# GrapeCity.Documents.Imaging.Windows.PaletteColor.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor*">PaletteColor Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_System_UInt32_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor(System.UInt32)">PaletteColor(uint)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.PaletteColor.html">PaletteColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PaletteColor(uint argb)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(argb As UInteger)</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.uint32">uint</a></td>
      <td><span class="parametername">argb</span></td>
      <td><p>A packed unsigned integer containing all four color components in 32bppBGRA format.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">PaletteColor(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.PaletteColor.html">PaletteColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PaletteColor(int red, int green, int blue, int alpha = 255)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(red As Integer, green As Integer, blue As Integer, Optional alpha As Integer = 255)</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><p>The red component of the color.</p>
</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><p>The green component of the color.</p>
</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><p>The blue component of the color.</p>
</td>
    </tr>
    <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><p>The alpha component of the color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_GrapeCity_Documents_DX_ColorF_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor(GrapeCity.Documents.DX.ColorF)">PaletteColor(ColorF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.PaletteColor.html">PaletteColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PaletteColor(ColorF value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value 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><span class="xref">ColorF</span></td>
      <td><span class="parametername">value</span></td>
      <td><p>The source C1.Util.DX.ColorF.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_PaletteColor__ctor_System_Drawing_Color_" data-uid="GrapeCity.Documents.Imaging.Windows.PaletteColor.#ctor(System.Drawing.Color)">PaletteColor(Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.PaletteColor.html">PaletteColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PaletteColor(Color color)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As Color)</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.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The System.Drawing.Color value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
