# C1.Win.Document.C1Image

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Document_C1Image" data-uid="C1.Win.Document.C1Image" class="text-break">C1Image Class
</h1>
  <div class="markdown level0 summary"><p>For internal use.
Helper class rerpesents the crossplatform image holder in C1Document.</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">C1Image</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><span class="xref">IImage</span></div>
    <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.idisposable">IDisposable</a></div>
    <div><span class="xref">IMemoryStreamProvided</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Document.html">C1.Win.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Document.10.dll</h6>
  <h5 id="C1_Win_Document_C1Image_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1Image : Object, IImage, IDisposable, IDisposable, IMemoryStreamProvided</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1Image
    Inherits Object
    Implements IImage, IDisposable, IDisposable, IMemoryStreamProvided</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_Win_Document_C1Image__ctor_System_Byte___C1_Win_Document_C1ImageFormat_" data-uid="C1.Win.Document.C1Image.#ctor(System.Byte[],C1.Win.Document.C1ImageFormat)">
          <a class="xref" href="C1.Win.Document.C1Image.-ctor.html#C1_Win_Document_C1Image__ctor_System_Byte___C1_Win_Document_C1ImageFormat_">C1Image(byte[], C1ImageFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image__ctor_System_Drawing_Image_" data-uid="C1.Win.Document.C1Image.#ctor(System.Drawing.Image)">
          <a class="xref" href="C1.Win.Document.C1Image.-ctor.html#C1_Win_Document_C1Image__ctor_System_Drawing_Image_">C1Image(Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image__ctor_System_Drawing_Imaging_Metafile_" data-uid="C1.Win.Document.C1Image.#ctor(System.Drawing.Imaging.Metafile)">
          <a class="xref" href="C1.Win.Document.C1Image.-ctor.html#C1_Win_Document_C1Image__ctor_System_Drawing_Imaging_Metafile_">C1Image(Metafile)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image__ctor_System_IO_MemoryStream_" data-uid="C1.Win.Document.C1Image.#ctor(System.IO.MemoryStream)">
          <a class="xref" href="C1.Win.Document.C1Image.-ctor.html#C1_Win_Document_C1Image__ctor_System_IO_MemoryStream_">C1Image(MemoryStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image__ctor_System_IO_MemoryStream_C1_Win_Document_C1ImageFormat_" data-uid="C1.Win.Document.C1Image.#ctor(System.IO.MemoryStream,C1.Win.Document.C1ImageFormat)">
          <a class="xref" href="C1.Win.Document.C1Image.-ctor.html#C1_Win_Document_C1Image__ctor_System_IO_MemoryStream_C1_Win_Document_C1ImageFormat_">C1Image(MemoryStream, C1ImageFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image__ctor_System_IO_Stream_C1_Win_Document_C1ImageFormat_" data-uid="C1.Win.Document.C1Image.#ctor(System.IO.Stream,C1.Win.Document.C1ImageFormat)">
          <a class="xref" href="C1.Win.Document.C1Image.-ctor.html#C1_Win_Document_C1Image__ctor_System_IO_Stream_C1_Win_Document_C1ImageFormat_">C1Image(Stream, C1ImageFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Document_C1Image_c_MaxScreenMetafileDPI" data-uid="C1.Win.Document.C1Image.c_MaxScreenMetafileDPI">
          <a class="xref" href="C1.Win.Document.C1Image.c_MaxScreenMetafileDPI.html">c_MaxScreenMetafileDPI</a>
        </td>
        <td class="markdown level1 summary"><p>The default maximum DPI for the metafile.</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_Win_Document_C1Image_Data" data-uid="C1.Win.Document.C1Image.Data">
          <a class="xref" href="C1.Win.Document.C1Image.Data.html#C1_Win_Document_C1Image_Data">Data</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.memorystream">MemoryStream</a> of image data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Disposed" data-uid="C1.Win.Document.C1Image.Disposed">
          <a class="xref" href="C1.Win.Document.C1Image.Disposed.html#C1_Win_Document_C1Image_Disposed">Disposed</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Empty" data-uid="C1.Win.Document.C1Image.Empty">
          <a class="xref" href="C1.Win.Document.C1Image.Empty.html#C1_Win_Document_C1Image_Empty">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the image data is empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_ExifProfile" data-uid="C1.Win.Document.C1Image.ExifProfile">
          <a class="xref" href="C1.Win.Document.C1Image.ExifProfile.html#C1_Win_Document_C1Image_ExifProfile">ExifProfile</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Format" data-uid="C1.Win.Document.C1Image.Format">
          <a class="xref" href="C1.Win.Document.C1Image.Format.html#C1_Win_Document_C1Image_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.Document.C1ImageFormat.html">C1ImageFormat</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Height" data-uid="C1.Win.Document.C1Image.Height">
          <a class="xref" href="C1.Win.Document.C1Image.Height.html#C1_Win_Document_C1Image_Height">Height</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_HorizontalResolution" data-uid="C1.Win.Document.C1Image.HorizontalResolution">
          <a class="xref" href="C1.Win.Document.C1Image.HorizontalResolution.html#C1_Win_Document_C1Image_HorizontalResolution">HorizontalResolution</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Rotation" data-uid="C1.Win.Document.C1Image.Rotation">
          <a class="xref" href="C1.Win.Document.C1Image.Rotation.html#C1_Win_Document_C1Image_Rotation">Rotation</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_VerticalResolution" data-uid="C1.Win.Document.C1Image.VerticalResolution">
          <a class="xref" href="C1.Win.Document.C1Image.VerticalResolution.html#C1_Win_Document_C1Image_VerticalResolution">VerticalResolution</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Width" data-uid="C1.Win.Document.C1Image.Width">
          <a class="xref" href="C1.Win.Document.C1Image.Width.html#C1_Win_Document_C1Image_Width">Width</a>
        </td>
        <td class="markdown level1 summary"></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_Win_Document_C1Image_Dispose" data-uid="C1.Win.Document.C1Image.Dispose">
          <a class="xref" href="C1.Win.Document.C1Image.Dispose.html#C1_Win_Document_C1Image_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Cleans up <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Dispose_System_Boolean_" data-uid="C1.Win.Document.C1Image.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Document.C1Image.Dispose.html#C1_Win_Document_C1Image_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the unmanaged resources used by the <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> and optionally releases the managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_Finalize" data-uid="C1.Win.Document.C1Image.Finalize">
          <a class="xref" href="C1.Win.Document.C1Image.Finalize.html#C1_Win_Document_C1Image_Finalize">Finalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Cleans up <a class="xref" href="C1.Win.Document.C1Image.html">C1Image</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_GetData" data-uid="C1.Win.Document.C1Image.GetData">
          <a class="xref" href="C1.Win.Document.C1Image.GetData.html#C1_Win_Document_C1Image_GetData">GetData()</a>
        </td>
        <td class="markdown level1 summary"><p>Use this method to get the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.memorystream">MemoryStream</a> which can be used to create an image
in multithreading enviroment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_GetFormat_System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.Document.C1Image.GetFormat(System.Drawing.Imaging.ImageFormat)">
          <a class="xref" href="C1.Win.Document.C1Image.GetFormat.html#C1_Win_Document_C1Image_GetFormat_System_Drawing_Imaging_ImageFormat_">GetFormat(ImageFormat)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Win.Document.C1ImageFormat.html">C1ImageFormat</a> value corresponding to the passed <span class="xref">System.Drawing.Imaging.ImageFormat</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_GetSize" data-uid="C1.Win.Document.C1Image.GetSize">
          <a class="xref" href="C1.Win.Document.C1Image.GetSize.html#C1_Win_Document_C1Image_GetSize">GetSize()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns size of the image in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_ToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_" data-uid="C1.Win.Document.C1Image.ToGcBitmap(GrapeCity.Documents.Imaging.GcBitmap)">
          <a class="xref" href="C1.Win.Document.C1Image.ToGcBitmap.html#C1_Win_Document_C1Image_ToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_">ToGcBitmap(GcBitmap)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_ToGcBitmap_System_Boolean_System_Boolean__" data-uid="C1.Win.Document.C1Image.ToGcBitmap(System.Boolean,System.Boolean@)">
          <a class="xref" href="C1.Win.Document.C1Image.ToGcBitmap.html#C1_Win_Document_C1Image_ToGcBitmap_System_Boolean_System_Boolean__">ToGcBitmap(bool, out bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_ToGcBitmap_System_Boolean__" data-uid="C1.Win.Document.C1Image.ToGcBitmap(System.Boolean@)">
          <a class="xref" href="C1.Win.Document.C1Image.ToGcBitmap.html#C1_Win_Document_C1Image_ToGcBitmap_System_Boolean__">ToGcBitmap(out bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_ToGcImage" data-uid="C1.Win.Document.C1Image.ToGcImage">
          <a class="xref" href="C1.Win.Document.C1Image.ToGcImage.html#C1_Win_Document_C1Image_ToGcImage">ToGcImage()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_C1Image_ToPngBytes" data-uid="C1.Win.Document.C1Image.ToPngBytes">
          <a class="xref" href="C1.Win.Document.C1Image.ToPngBytes.html#C1_Win_Document_C1Image_ToPngBytes">ToPngBytes()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns byte array of image.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
