# C1.Win.Document.Util.C1GdiGraphics

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Document_Util_C1GdiGraphics" data-uid="C1.Win.Document.Util.C1GdiGraphics" class="text-break">C1GdiGraphics Class
</h1>
  <div class="markdown level0 summary"><p>Represents the graphics properties and methods.</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">C1Graphics</span></div>
    <div class="level2"><span class="xref">C1GdiGraphics</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="C1.Win.Document.Util.IC1DXTextLayoutOwner.html">IC1DXTextLayoutOwner</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Document.Util.html">C1.Win.Document.Util</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Document.10.dll</h6>
  <h5 id="C1_Win_Document_Util_C1GdiGraphics_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1GdiGraphics : C1Graphics, IDisposable, IC1DXTextLayoutOwner</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1GdiGraphics
    Inherits C1Graphics
    Implements IDisposable, IC1DXTextLayoutOwner</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_Util_C1GdiGraphics__ctor_System_Drawing_Graphics_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor(System.Drawing.Graphics)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.-ctor.html#C1_Win_Document_Util_C1GdiGraphics__ctor_System_Drawing_Graphics_">C1GdiGraphics(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.html">C1GdiGraphics</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics__ctor_System_Drawing_Graphics_C1_Util_DX_DirectWrite_Factory_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor(System.Drawing.Graphics,C1.Util.DX.DirectWrite.Factory)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.-ctor.html#C1_Win_Document_Util_C1GdiGraphics__ctor_System_Drawing_Graphics_C1_Util_DX_DirectWrite_Factory_">C1GdiGraphics(Graphics, Factory)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.html">C1GdiGraphics</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_Win_Document_Util_C1GdiGraphics_DpiX" data-uid="C1.Win.Document.Util.C1GdiGraphics.DpiX">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.DpiX.html#C1_Win_Document_Util_C1GdiGraphics_DpiX">DpiX</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the horizontal resolution of the context.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_DpiY" data-uid="C1.Win.Document.Util.C1GdiGraphics.DpiY">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.DpiY.html#C1_Win_Document_Util_C1GdiGraphics_DpiY">DpiY</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the vertical resolution of the context.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_Graphics" data-uid="C1.Win.Document.Util.C1GdiGraphics.Graphics">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.Graphics.html#C1_Win_Document_Util_C1GdiGraphics_Graphics">Graphics</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <span class="xref">System.Drawing.Graphics</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_Transform" data-uid="C1.Win.Document.Util.C1GdiGraphics.Transform">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.Transform.html#C1_Win_Document_Util_C1GdiGraphics_Transform">Transform</a>
        </td>
        <td class="markdown level1 summary"><p>Replace this with actual implementation.</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_Win_Document_Util_C1GdiGraphics_CreateClipRegion_C1_Document_Util_IPath_" data-uid="C1.Win.Document.Util.C1GdiGraphics.CreateClipRegion(C1.Document.Util.IPath)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.CreateClipRegion.html#C1_Win_Document_Util_C1GdiGraphics_CreateClipRegion_C1_Document_Util_IPath_">CreateClipRegion(IPath)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates clip region for specified graphics path.
Note! The clip region should NOT dispose passed graphics path, it is managed by the outer code.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_CreateClipRegion_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1GdiGraphics.CreateClipRegion(C1.Interop.Rect)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.CreateClipRegion.html#C1_Win_Document_Util_C1GdiGraphics_CreateClipRegion_C1_Interop_Rect_">CreateClipRegion(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates clip region for specified bounds.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_CreatePath" data-uid="C1.Win.Document.Util.C1GdiGraphics.CreatePath">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.CreatePath.html#C1_Win_Document_Util_C1GdiGraphics_CreatePath">CreatePath()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates graphics path.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_CreateTextLayout" data-uid="C1.Win.Document.Util.C1GdiGraphics.CreateTextLayout">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.CreateTextLayout.html#C1_Win_Document_Util_C1GdiGraphics_CreateTextLayout">CreateTextLayout()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and initializes the <span class="xref">C1.Document.Util.C1TextLayout</span> object which can be used to render or measure text on the graphics.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_Dispose_System_Boolean_" data-uid="C1.Win.Document.Util.C1GdiGraphics.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.Dispose.html#C1_Win_Document_Util_C1GdiGraphics_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_DrawGlyphRun_System_Double_System_Double_System_Int32_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_Drawing_Color_C1_Document_Util_IC1TextRangeBase_C1_Document_Util_C1TextLayout_System_String_" data-uid="C1.Win.Document.Util.C1GdiGraphics.DrawGlyphRun(System.Double,System.Double,System.Int32,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.Drawing.Color,C1.Document.Util.IC1TextRangeBase,C1.Document.Util.C1TextLayout,System.String)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.DrawGlyphRun.html#C1_Win_Document_Util_C1GdiGraphics_DrawGlyphRun_System_Double_System_Double_System_Int32_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_Drawing_Color_C1_Document_Util_IC1TextRangeBase_C1_Document_Util_C1TextLayout_System_String_">DrawGlyphRun(double, double, int, IntPtr, IntPtr, IntPtr, IntPtr, Color, IC1TextRangeBase, C1TextLayout, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_DrawRtf_System_Object_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_System_Drawing_Color_" data-uid="C1.Win.Document.Util.C1GdiGraphics.DrawRtf(System.Object,System.String,System.Int32,System.Int32,C1.Interop.Rect,System.Boolean,System.Drawing.Color)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.DrawRtf.html#C1_Win_Document_Util_C1GdiGraphics_DrawRtf_System_Object_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_System_Drawing_Color_">DrawRtf(object, string, int, int, Rect, bool, Color)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_FillEllipse_System_Drawing_Color_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1GdiGraphics.FillEllipse(System.Drawing.Color,C1.Interop.Rect)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.FillEllipse.html#C1_Win_Document_Util_C1GdiGraphics_FillEllipse_System_Drawing_Color_C1_Interop_Rect_">FillEllipse(Color, Rect)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_FillPath_System_Drawing_Color_C1_Document_Util_IPath_" data-uid="C1.Win.Document.Util.C1GdiGraphics.FillPath(System.Drawing.Color,C1.Document.Util.IPath)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.FillPath.html#C1_Win_Document_Util_C1GdiGraphics_FillPath_System_Drawing_Color_C1_Document_Util_IPath_">FillPath(Color, IPath)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_FillRectangle_System_Drawing_Color_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1GdiGraphics.FillRectangle(System.Drawing.Color,C1.Interop.Rect)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.FillRectangle.html#C1_Win_Document_Util_C1GdiGraphics_FillRectangle_System_Drawing_Color_C1_Interop_Rect_">FillRectangle(Color, Rect)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_GetSmoothingMode" data-uid="C1.Win.Document.Util.C1GdiGraphics.GetSmoothingMode">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.GetSmoothingMode.html#C1_Win_Document_Util_C1GdiGraphics_GetSmoothingMode">GetSmoothingMode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalCreateImage_GrapeCity_Documents_Drawing_IImage_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalCreateImage(GrapeCity.Documents.Drawing.IImage)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalCreateImage.html#C1_Win_Document_Util_C1GdiGraphics_InternalCreateImage_GrapeCity_Documents_Drawing_IImage_">InternalCreateImage(IImage)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalCreateImage_GrapeCity_Documents_Imaging_GcBitmap_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalCreateImage(GrapeCity.Documents.Imaging.GcBitmap)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalCreateImage.html#C1_Win_Document_Util_C1GdiGraphics_InternalCreateImage_GrapeCity_Documents_Imaging_GcBitmap_">InternalCreateImage(GcBitmap)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalDrawEllipse_C1_Interop_Rect_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalDrawEllipse(C1.Interop.Rect,System.Drawing.Color,System.Double,C1.Document.Util.PenStyle)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalDrawEllipse.html#C1_Win_Document_Util_C1GdiGraphics_InternalDrawEllipse_C1_Interop_Rect_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_">InternalDrawEllipse(Rect, Color, double, PenStyle)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalDrawImage_C1_Document_Util_INativeImage_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalDrawImage(C1.Document.Util.INativeImage,C1.Interop.Rect)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalDrawImage.html#C1_Win_Document_Util_C1GdiGraphics_InternalDrawImage_C1_Document_Util_INativeImage_C1_Interop_Rect_">InternalDrawImage(INativeImage, Rect)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalDrawLine_System_Double_System_Double_System_Double_System_Double_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalDrawLine(System.Double,System.Double,System.Double,System.Double,System.Drawing.Color,System.Double,C1.Document.Util.PenStyle)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalDrawLine.html#C1_Win_Document_Util_C1GdiGraphics_InternalDrawLine_System_Double_System_Double_System_Double_System_Double_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_">InternalDrawLine(double, double, double, double, Color, double, PenStyle)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalDrawPath_C1_Document_Util_IPath_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalDrawPath(C1.Document.Util.IPath,System.Drawing.Color,System.Double,C1.Document.Util.PenStyle)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalDrawPath.html#C1_Win_Document_Util_C1GdiGraphics_InternalDrawPath_C1_Document_Util_IPath_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_">InternalDrawPath(IPath, Color, double, PenStyle)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalDrawRectangle_C1_Interop_Rect_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalDrawRectangle(C1.Interop.Rect,System.Drawing.Color,System.Double,C1.Document.Util.PenStyle)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalDrawRectangle.html#C1_Win_Document_Util_C1GdiGraphics_InternalDrawRectangle_C1_Interop_Rect_System_Drawing_Color_System_Double_C1_Document_Util_PenStyle_">InternalDrawRectangle(Rect, Color, double, PenStyle)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalFillEllipse_C1_Document_C1Brush_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalFillEllipse(C1.Document.C1Brush,C1.Interop.Rect)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalFillEllipse.html#C1_Win_Document_Util_C1GdiGraphics_InternalFillEllipse_C1_Document_C1Brush_C1_Interop_Rect_">InternalFillEllipse(C1Brush, Rect)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalFillPath_C1_Document_C1Brush_C1_Document_Util_IPath_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalFillPath(C1.Document.C1Brush,C1.Document.Util.IPath)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalFillPath.html#C1_Win_Document_Util_C1GdiGraphics_InternalFillPath_C1_Document_C1Brush_C1_Document_Util_IPath_">InternalFillPath(C1Brush, IPath)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalFillRectangle_C1_Document_C1Brush_C1_Interop_Rect_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalFillRectangle(C1.Document.C1Brush,C1.Interop.Rect)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalFillRectangle.html#C1_Win_Document_Util_C1GdiGraphics_InternalFillRectangle_C1_Document_C1Brush_C1_Interop_Rect_">InternalFillRectangle(C1Brush, Rect)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalRemoveClip_C1_Document_Util_IClipRegion_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalRemoveClip(C1.Document.Util.IClipRegion)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalRemoveClip.html#C1_Win_Document_Util_C1GdiGraphics_InternalRemoveClip_C1_Document_Util_IClipRegion_">InternalRemoveClip(IClipRegion)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_InternalSetClip_C1_Document_Util_IClipRegion_" data-uid="C1.Win.Document.Util.C1GdiGraphics.InternalSetClip(C1.Document.Util.IClipRegion)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.InternalSetClip.html#C1_Win_Document_Util_C1GdiGraphics_InternalSetClip_C1_Document_Util_IClipRegion_">InternalSetClip(IClipRegion)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1GdiGraphics_SetSmoothingMode_C1_Document_Util_SmoothingMode_" data-uid="C1.Win.Document.Util.C1GdiGraphics.SetSmoothingMode(C1.Document.Util.SmoothingMode)">
          <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.SetSmoothingMode.html#C1_Win_Document_Util_C1GdiGraphics_SetSmoothingMode_C1_Document_Util_SmoothingMode_">SetSmoothingMode(SmoothingMode)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
