# C1.Framework.Drawing.Gdi.Bitmap

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Drawing_Gdi_Bitmap" data-uid="C1.Framework.Drawing.Gdi.Bitmap" class="text-break">Bitmap Class
</h1>
  <div class="markdown level0 summary"><p>Represents the gid bitmap.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.Drawing.Gdi.GdiObject.html">GdiObject</a></div>
    <div class="level3"><span class="xref">Bitmap</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </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_Bitmap_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class Bitmap : GdiObject, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class Bitmap
    Inherits GdiObject
    Implements IDisposable, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap__ctor_C1_Framework_Drawing_Gdi_Graphics_System_Int32_System_Int32_" data-uid="C1.Framework.Drawing.Gdi.Bitmap.#ctor(C1.Framework.Drawing.Gdi.Graphics,System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.-ctor.html#C1_Framework_Drawing_Gdi_Bitmap__ctor_C1_Framework_Drawing_Gdi_Graphics_System_Int32_System_Int32_">Bitmap(Graphics, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Intializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> class
with the specified <a class="xref" href="C1.Framework.Drawing.Gdi.Graphics.html">Graphics</a> object and size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Drawing_Bitmap_" data-uid="C1.Framework.Drawing.Gdi.Bitmap.#ctor(System.Drawing.Bitmap)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.-ctor.html#C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Drawing_Bitmap_">Bitmap(Bitmap)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Drawing_Bitmap_System_Drawing_Color_" data-uid="C1.Framework.Drawing.Gdi.Bitmap.#ctor(System.Drawing.Bitmap,System.Drawing.Color)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.-ctor.html#C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Drawing_Bitmap_System_Drawing_Color_">Bitmap(Bitmap, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Int32_System_Int32_" data-uid="C1.Framework.Drawing.Gdi.Bitmap.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.-ctor.html#C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Int32_System_Int32_">Bitmap(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> class
with the specified size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Int32_System_Int32_C1_Framework_Drawing_Gdi_BitsPerPixel_" data-uid="C1.Framework.Drawing.Gdi.Bitmap.#ctor(System.Int32,System.Int32,C1.Framework.Drawing.Gdi.BitsPerPixel)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.-ctor.html#C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Int32_System_Int32_C1_Framework_Drawing_Gdi_BitsPerPixel_">Bitmap(int, int, BitsPerPixel)</a>
        </td>
        <td class="markdown level1 summary"><p>Intializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> class
with the specified size color format (color planes and bits-per-pixel).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Int32_System_Int32_System_Int32_C1_Framework_Drawing_Gdi_BitsPerPixel_System_Byte___" data-uid="C1.Framework.Drawing.Gdi.Bitmap.#ctor(System.Int32,System.Int32,System.Int32,C1.Framework.Drawing.Gdi.BitsPerPixel,System.Byte[])">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.-ctor.html#C1_Framework_Drawing_Gdi_Bitmap__ctor_System_Int32_System_Int32_System_Int32_C1_Framework_Drawing_Gdi_BitsPerPixel_System_Byte___">Bitmap(int, int, int, BitsPerPixel, byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Intializes a new instance of the <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> class
with the specified size color format (color planes and bits-per-pixel).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_BitsPerPixel" data-uid="C1.Framework.Drawing.Gdi.Bitmap.BitsPerPixel">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.BitsPerPixel.html#C1_Framework_Drawing_Gdi_Bitmap_BitsPerPixel">BitsPerPixel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the bits-per-pixel of the bitmap.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_Height" data-uid="C1.Framework.Drawing.Gdi.Bitmap.Height">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.Height.html#C1_Framework_Drawing_Gdi_Bitmap_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the height of this <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_Planes" data-uid="C1.Framework.Drawing.Gdi.Bitmap.Planes">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.Planes.html#C1_Framework_Drawing_Gdi_Bitmap_Planes">Planes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the planes of the Bitmap. The value is always 1.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_Size" data-uid="C1.Framework.Drawing.Gdi.Bitmap.Size">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.Size.html#C1_Framework_Drawing_Gdi_Bitmap_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the width and height of this <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_Width" data-uid="C1.Framework.Drawing.Gdi.Bitmap.Width">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.Width.html#C1_Framework_Drawing_Gdi_Bitmap_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the width of this <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Framework_Drawing_Gdi_Bitmap_Clone" data-uid="C1.Framework.Drawing.Gdi.Bitmap.Clone">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.Clone.html#C1_Framework_Drawing_Gdi_Bitmap_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an exact copy of this <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.html">Bitmap</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_GetData" data-uid="C1.Framework.Drawing.Gdi.Bitmap.GetData">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.GetData.html#C1_Framework_Drawing_Gdi_Bitmap_GetData">GetData()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the data of the bitmap.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Bitmap_ToGdiplusBitmap_C1_Framework_Drawing_Gdi_Bitmap_" data-uid="C1.Framework.Drawing.Gdi.Bitmap.ToGdiplusBitmap(C1.Framework.Drawing.Gdi.Bitmap)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Bitmap.ToGdiplusBitmap.html#C1_Framework_Drawing_Gdi_Bitmap_ToGdiplusBitmap_C1_Framework_Drawing_Gdi_Bitmap_">ToGdiplusBitmap(Bitmap)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a GDI+ Bitmap from a handle to a GDI bitmap.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
