# C1.Util.DX.DXGI.FormatHelper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_FormatHelper" data-uid="C1.Util.DX.DXGI.FormatHelper" class="text-break">FormatHelper Class
</h1>
  <div class="markdown level0 summary"><p>Helper to use with <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">FormatHelper</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.DXGI.html">C1.Util.DX.DXGI</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_DXGI_FormatHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class FormatHelper</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module FormatHelper</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_ComputeScanlineCount_C1_Util_DX_DXGI_Format_System_Int32_" data-uid="C1.Util.DX.DXGI.FormatHelper.ComputeScanlineCount(C1.Util.DX.DXGI.Format,System.Int32)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.ComputeScanlineCount.html#C1_Util_DX_DXGI_FormatHelper_ComputeScanlineCount_C1_Util_DX_DXGI_Format_System_Int32_">ComputeScanlineCount(Format, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Computes the scanline count (number of scanlines).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_IsCompressed_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.IsCompressed(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.IsCompressed.html#C1_Util_DX_DXGI_FormatHelper_IsCompressed_C1_Util_DX_DXGI_Format_">IsCompressed(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> is a compressed format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_IsPacked_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.IsPacked(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.IsPacked.html#C1_Util_DX_DXGI_FormatHelper_IsPacked_C1_Util_DX_DXGI_Format_">IsPacked(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> is packed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_IsSRgb_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.IsSRgb(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.IsSRgb.html#C1_Util_DX_DXGI_FormatHelper_IsSRgb_C1_Util_DX_DXGI_Format_">IsSRgb(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> is a SRGB format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_IsTypeless_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.IsTypeless(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.IsTypeless.html#C1_Util_DX_DXGI_FormatHelper_IsTypeless_C1_Util_DX_DXGI_Format_">IsTypeless(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> is typeless.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_IsValid_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.IsValid(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.IsValid.html#C1_Util_DX_DXGI_FormatHelper_IsValid_C1_Util_DX_DXGI_Format_">IsValid(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> is valid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_IsVideo_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.IsVideo(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.IsVideo.html#C1_Util_DX_DXGI_FormatHelper_IsVideo_C1_Util_DX_DXGI_Format_">IsVideo(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> is video.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_SizeOfInBits_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.SizeOfInBits(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.SizeOfInBits.html#C1_Util_DX_DXGI_FormatHelper_SizeOfInBits_C1_Util_DX_DXGI_Format_">SizeOfInBits(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the size of a <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> in bits.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_FormatHelper_SizeOfInBytes_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.DXGI.FormatHelper.SizeOfInBytes(C1.Util.DX.DXGI.Format)">
          <a class="xref" href="C1.Util.DX.DXGI.FormatHelper.SizeOfInBytes.html#C1_Util_DX_DXGI_FormatHelper_SizeOfInBytes_C1_Util_DX_DXGI_Format_">SizeOfInBytes(Format)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the size of a <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> in bytes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
