# GrapeCity.Documents.Imaging.ColorMatrix5x4.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor*">ColorMatrix5x4 Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor">ColorMatrix5x4()</h4>
<div class="markdown level1 summary"><p>Creates an identity <a class="xref" href="GrapeCity.Documents.Imaging.ColorMatrix5x4.html">ColorMatrix5x4</a> with M11, M22, M33, M44 components set to 1.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColorMatrix5x4()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_System_Single_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor(System.Single)">ColorMatrix5x4(float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.ColorMatrix5x4.html">ColorMatrix5x4</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColorMatrix5x4(float value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value As Single)</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.single">float</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value that will be assigned to all components.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)">ColorMatrix5x4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.ColorMatrix5x4.html">ColorMatrix5x4</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 ColorMatrix5x4(float M11, float M12, float M13, float M14, float M21, float M22, float M23, float M24, float M31, float M32, float M33, float M34, float M41, float M42, float M43, float M44, float M51, float M52, float M53, float M54)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(M11 As Single, M12 As Single, M13 As Single, M14 As Single, M21 As Single, M22 As Single, M23 As Single, M24 As Single, M31 As Single, M32 As Single, M33 As Single, M34 As Single, M41 As Single, M42 As Single, M43 As Single, M44 As Single, M51 As Single, M52 As Single, M53 As Single, M54 As Single)</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.single">float</a></td>
      <td><span class="parametername">M11</span></td>
      <td><p>The value to assign at row 1 column 1 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M12</span></td>
      <td><p>The value to assign at row 1 column 2 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M13</span></td>
      <td><p>The value to assign at row 1 column 3 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M14</span></td>
      <td><p>The value to assign at row 1 column 4 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M21</span></td>
      <td><p>The value to assign at row 2 column 1 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M22</span></td>
      <td><p>The value to assign at row 2 column 2 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M23</span></td>
      <td><p>The value to assign at row 2 column 3 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M24</span></td>
      <td><p>The value to assign at row 2 column 4 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M31</span></td>
      <td><p>The value to assign at row 3 column 1 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M32</span></td>
      <td><p>The value to assign at row 3 column 2 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M33</span></td>
      <td><p>The value to assign at row 3 column 3 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M34</span></td>
      <td><p>The value to assign at row 3 column 4 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M41</span></td>
      <td><p>The value to assign at row 4 column 1 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M42</span></td>
      <td><p>The value to assign at row 4 column 2 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M43</span></td>
      <td><p>The value to assign at row 4 column 3 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M44</span></td>
      <td><p>The value to assign at row 4 column 4 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M51</span></td>
      <td><p>The value to assign at row 5 column 1 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M52</span></td>
      <td><p>The value to assign at row 5 column 2 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M53</span></td>
      <td><p>The value to assign at row 5 column 3 of the ColorMatrix5x4.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">M54</span></td>
      <td><p>The value to assign at row 5 column 4 of the ColorMatrix5x4.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_ColorMatrix5x4__ctor_System_Single___" data-uid="GrapeCity.Documents.Imaging.ColorMatrix5x4.#ctor(System.Single[])">ColorMatrix5x4(float[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.ColorMatrix5x4.html">ColorMatrix5x4</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 ColorMatrix5x4(float[] values)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(values As Single())</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.single">float</a>[]</td>
      <td><span class="parametername">values</span></td>
      <td><p>The values to assign to the components of the ColorMatrix5x4. This must be an array with 20 elements.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
