# C1.Util.DX.Direct2D.PixelFormat.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_PixelFormat__ctor_" data-uid="C1.Util.DX.Direct2D.PixelFormat.#ctor*">PixelFormat Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_PixelFormat__ctor_" data-uid="C1.Util.DX.Direct2D.PixelFormat.#ctor*"></a>
<h4 id="C1_Util_DX_Direct2D_PixelFormat__ctor_C1_Util_DX_DXGI_Format_C1_Util_DX_Direct2D_AlphaMode_" data-uid="C1.Util.DX.Direct2D.PixelFormat.#ctor(C1.Util.DX.DXGI.Format,C1.Util.DX.Direct2D.AlphaMode)">PixelFormat(Format, AlphaMode)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.PixelFormat.html">PixelFormat</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 PixelFormat(Format format, AlphaMode alphaMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(format As Format, alphaMode As AlphaMode)</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.DXGI.Format.html">Format</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>A value that specifies the size and arrangement of channels in each pixel.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.AlphaMode.html">AlphaMode</a></td>
      <td><span class="parametername">alphaMode</span></td>
      <td><p>A value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unknown.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
