# C1.Win.Bitmap.C1Bitmap.CreateImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Bitmap_C1Bitmap_CreateImage_" data-uid="C1.Win.Bitmap.C1Bitmap.CreateImage*">CreateImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Bitmap_C1Bitmap_CreateImage_" data-uid="C1.Win.Bitmap.C1Bitmap.CreateImage*"></a>
<h4 id="C1_Win_Bitmap_C1Bitmap_CreateImage_System_Int32_System_Int32_C1_Win_Bitmap_PixelFormat_" data-uid="C1.Win.Bitmap.C1Bitmap.CreateImage(System.Int32,System.Int32,C1.Win.Bitmap.PixelFormat)">CreateImage(int, int, PixelFormat)</h4>
<div class="markdown level1 summary"><p>Creates the internal image of the given size with uninitialized content.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CreateImage(int width, int height, PixelFormat pixelFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CreateImage(width As Integer, height As Integer, pixelFormat As PixelFormat)</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.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Bitmap.PixelFormat.html">PixelFormat</a></td>
      <td><span class="parametername">pixelFormat</span></td>
      <td><p>The pixel format of the image.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
