# GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*">GcSkiaBitmap Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor">GcSkiaBitmap()</h4>
<div class="markdown level1 summary"><p>Initializes a new empty instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.html">GcSkiaBitmap</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSkiaBitmap()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_System_Int32_System_Int32_System_Boolean_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor(System.Int32,System.Int32,System.Boolean)">GcSkiaBitmap(int, int, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.html">GcSkiaBitmap</a> class and creates the image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSkiaBitmap(int pixelWidth, int pixelHeight, bool opaque = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pixelWidth As Integer, pixelHeight As Integer, Optional opaque As Boolean = False)</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">pixelWidth</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">pixelHeight</span></td>
      <td><p>The height of the image, in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">opaque</span></td>
      <td><p>Indicates whether the alpha channel should be ignored.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_System_IO_Stream_System_Nullable_System_Drawing_Rectangle__" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor(System.IO.Stream,System.Nullable{System.Drawing.Rectangle})">GcSkiaBitmap(Stream, Rectangle?)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.html">GcSkiaBitmap</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSkiaBitmap(Stream stream, Rectangle? clipRect = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream, Optional clipRect As Rectangle? = Nothing)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The source stream. JPEG, PNG, WEBP formats are supported.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>?</td>
      <td><span class="parametername">clipRect</span></td>
      <td><p>Clipping rectangle of the image to be loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_System_String_System_Nullable_System_Drawing_Rectangle__" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor(System.String,System.Nullable{System.Drawing.Rectangle})">GcSkiaBitmap(string, Rectangle?)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.html">GcSkiaBitmap</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSkiaBitmap(string filePath, Rectangle? clipRect = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(filePath As String, Optional clipRect As Rectangle? = Nothing)</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.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>The file path to the image. JPEG, PNG, WEBP formats are supported.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>?</td>
      <td><span class="parametername">clipRect</span></td>
      <td><p>Clipping rectangle of the image to be loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_GrapeCity_Documents_Drawing_Image_System_Nullable_System_Drawing_Rectangle__" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor(GrapeCity.Documents.Drawing.Image,System.Nullable{System.Drawing.Rectangle})">GcSkiaBitmap(Image, Rectangle?)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.html">GcSkiaBitmap</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSkiaBitmap(Image image, Rectangle? clipRect = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(image As Image, Optional clipRect As Rectangle? = Nothing)</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="../DS.Documents.Imaging/GrapeCity.Documents.Drawing.Image.html">Image</a></td>
      <td><span class="parametername">image</span></td>
      <td><p><a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Drawing.Image.html">Image</a> used as the source of image data.
JPEG, PNG and WEBP formats are supported.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>?</td>
      <td><span class="parametername">clipRect</span></td>
      <td><p>Clipping rectangle of the image to be loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap__ctor_GrapeCity_Documents_Imaging_GcBitmap_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.#ctor(GrapeCity.Documents.Imaging.GcBitmap)">GcSkiaBitmap(GcBitmap)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.html">GcSkiaBitmap</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSkiaBitmap(GcBitmap bmp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As GcBitmap)</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="../DS.Documents.Imaging/GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The source <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
