# C1.Framework.Drawing.Gdi.BitsPerPixel

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Framework_Drawing_Gdi_BitsPerPixel" data-uid="C1.Framework.Drawing.Gdi.BitsPerPixel" class="text-break">BitsPerPixel Enum
</h1>
  <div class="markdown level0 summary"><p>Represents the bits-per-pixel of the bitmap.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Drawing.Gdi.html">C1.Framework.Drawing.Gdi</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Drawing_Gdi_BitsPerPixel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum BitsPerPixel</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum BitsPerPixel</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_Bits16TrueColors">Bits16TrueColors</td>
        <td><p>The bitmap has a maximum of 2^16 colors.
In general, the color table is empty, each word in the bitmap array represents a single pixel</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_Bits1Monochrome">Bits1Monochrome</td>
        <td><p>Each bit in the bitmap array represents a pixel. the items member of color table contains two entries.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_Bits24TrueColors">Bits24TrueColors</td>
        <td><p>The bitmap has a maximum of 2^24 colors.
In general, the color table is empty, each 3-byte triplet in the bitmap array represents the relative
intensities of blue, green, and red, respectively, for a pixel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_Bits32TrueColors">Bits32TrueColors</td>
        <td><p>The bitmap has a maximum of 2^32 colors.
In general, the color table is empty, each double-word in the bitmap array represents the relative intensities
of blue, green, and red, respectively, for a pixel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_Bits4Colors16">Bits4Colors16</td>
        <td><p>The bitmap has a maximum of 16 colors, the items member of color table contains up to 16 entries.
Each pixel in the bitmap is represented by a 4-bit index into the color table.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_Bits8Colors256">Bits8Colors256</td>
        <td><p>The bitmap has a maximum of 256 colors, and the items member of color table contains up to 256 entries.
Each byte in the array represents a single pixel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_BitsPerPixel_SpecifiedByFormat">SpecifiedByFormat</td>
        <td><p>The number of bits-per-pixel is specified or is implied by the JPEG or PNG format.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
