# C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_GdiplusGraphicDeviceContext" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext" class="text-break">GdiplusGraphicDeviceContext Class
</h1>
  <div class="markdown level0 summary"><p>Represents a gdi device context that created by gdi+ Graphics.</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.DeviceContexts.DeviceContext.html">DeviceContext</a></div>
    <div class="level3"><span class="xref">GdiplusGraphicDeviceContext</span></div>
      <div class="level4"><a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.ImageDeviceContext.html">ImageDeviceContext</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.idevicecontext">IDeviceContext</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.html">C1.Framework.Drawing.Gdi.DeviceContexts</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Drawing_Gdi_DeviceContexts_GdiplusGraphicDeviceContext_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GdiplusGraphicDeviceContext : DeviceContext, IDeviceContext, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GdiplusGraphicDeviceContext
    Inherits DeviceContext
    Implements IDeviceContext, IDisposable</code></pre>
  </div>
  <h5 id="C1_Framework_Drawing_Gdi_DeviceContexts_GdiplusGraphicDeviceContext_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The Graphics will be locked, until the <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.html">GdiplusGraphicDeviceContext</a> is disposed.</p>
</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_DeviceContexts_GdiplusGraphicDeviceContext__ctor_System_Drawing_Graphics_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.#ctor(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.-ctor.html#C1_Framework_Drawing_Gdi_DeviceContexts_GdiplusGraphicDeviceContext__ctor_System_Drawing_Graphics_">GdiplusGraphicDeviceContext(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.html">GdiplusGraphicDeviceContext</a> class.</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_DeviceContexts_GdiplusGraphicDeviceContext_GdiplusGraphics" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.GdiplusGraphics">
          <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.GdiplusGraphics.html#C1_Framework_Drawing_Gdi_DeviceContexts_GdiplusGraphicDeviceContext_GdiplusGraphics">GdiplusGraphics</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the local cached Gdiplus <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>.</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_DeviceContexts_GdiplusGraphicDeviceContext_Dispose_System_Boolean_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.Dispose(System.Boolean)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.GdiplusGraphicDeviceContext.Dispose.html#C1_Framework_Drawing_Gdi_DeviceContexts_GdiplusGraphicDeviceContext_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the unmanaged resources used by the <b>GdiplusGraphicDeviceContext</b>
and optionally releases the managed resources.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
