# C1.Win.Document.Util.C1DXExportGraphics

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Document_Util_C1DXExportGraphics" data-uid="C1.Win.Document.Util.C1DXExportGraphics" class="text-break">C1DXExportGraphics Class
</h1>
  <div class="markdown level0 summary"><p>Base class for all graphics objects used in exporters.</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">C1DXExportGraphics</span></div>
      <div class="level3"><a class="xref" href="C1.Win.Document.Util.C1GcGraphics.html">C1GcGraphics</a></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_C1DXExportGraphics_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1DXExportGraphics : C1Graphics, IDisposable, IC1DXTextLayoutOwner</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1DXExportGraphics
    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_C1DXExportGraphics__ctor" data-uid="C1.Win.Document.Util.C1DXExportGraphics.#ctor">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.-ctor.html#C1_Win_Document_Util_C1DXExportGraphics__ctor">C1DXExportGraphics()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.html">C1DXExportGraphics</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_C1DXExportGraphics_DpiX" data-uid="C1.Win.Document.Util.C1DXExportGraphics.DpiX">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.DpiX.html#C1_Win_Document_Util_C1DXExportGraphics_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_C1DXExportGraphics_DpiY" data-uid="C1.Win.Document.Util.C1DXExportGraphics.DpiY">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.DpiY.html#C1_Win_Document_Util_C1DXExportGraphics_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_C1DXExportGraphics_Factory" data-uid="C1.Win.Document.Util.C1DXExportGraphics.Factory">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.Factory.html#C1_Win_Document_Util_C1DXExportGraphics_Factory">Factory</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.Factory.html#C1_Win_Document_Util_C1DXExportGraphics_Factory">Factory</a> object of graphics object used Direct2D and DirectWrite to perform drawing.</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_C1DXExportGraphics_Convert_C1_Interop_Rect_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.Convert(C1.Interop.Rect,System.Double,System.Double,System.Double,System.Double)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.Convert.html#C1_Win_Document_Util_C1DXExportGraphics_Convert_C1_Interop_Rect_System_Double_System_Double_System_Double_System_Double_">Convert(Rect, double, double, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the dimensions of the rectangle using DPI values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1DXExportGraphics_CreateTextLayout" data-uid="C1.Win.Document.Util.C1DXExportGraphics.CreateTextLayout">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.CreateTextLayout.html#C1_Win_Document_Util_C1DXExportGraphics_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_C1DXExportGraphics_Dispose_System_Boolean_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.Dispose.html#C1_Win_Document_Util_C1DXExportGraphics_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1DXExportGraphics_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.C1DXExportGraphics.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.C1DXExportGraphics.DrawGlyphRun.html#C1_Win_Document_Util_C1DXExportGraphics_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_C1DXExportGraphics_DrawGlyphs_C1_Interop_Point_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_Drawing_Color_C1_Util_DX_DirectWrite_MeasuringMode_System_String_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.DrawGlyphs(C1.Interop.Point,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.GlyphRunDescription,System.Drawing.Color,C1.Util.DX.DirectWrite.MeasuringMode,System.String)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.DrawGlyphs.html#C1_Win_Document_Util_C1DXExportGraphics_DrawGlyphs_C1_Interop_Point_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_GlyphRunDescription_System_Drawing_Color_C1_Util_DX_DirectWrite_MeasuringMode_System_String_">DrawGlyphs(Point, GlyphRun, GlyphRunDescription, Color, MeasuringMode, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Exactly draw glyphs run.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1DXExportGraphics_DrawRtf_System_Object_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_System_Drawing_Color_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.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.C1DXExportGraphics.DrawRtf.html#C1_Win_Document_Util_C1DXExportGraphics_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_C1DXExportGraphics_DrawText_C1_Interop_Point_System_String_System_String_System_Single_C1_Document_C1FontWeight_C1_Document_C1FontStretch_System_Boolean_C1_Document_C1TextDecoration_System_Drawing_Color_System_Single___System_Byte___System_Boolean_System_Int32_System_Double_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.DrawText(C1.Interop.Point,System.String,System.String,System.Single,C1.Document.C1FontWeight,C1.Document.C1FontStretch,System.Boolean,C1.Document.C1TextDecoration,System.Drawing.Color,System.Single[],System.Byte[],System.Boolean,System.Int32,System.Double)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.DrawText.html#C1_Win_Document_Util_C1DXExportGraphics_DrawText_C1_Interop_Point_System_String_System_String_System_Single_C1_Document_C1FontWeight_C1_Document_C1FontStretch_System_Boolean_C1_Document_C1TextDecoration_System_Drawing_Color_System_Single___System_Byte___System_Boolean_System_Int32_System_Double_">DrawText(Point, string, string, float, C1FontWeight, C1FontStretch, bool, C1TextDecoration, Color, float[], byte[], bool, int, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Simple draw text run.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1DXExportGraphics_GetBackColor_C1_Document_RenderFragment_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.GetBackColor(C1.Document.RenderFragment)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.GetBackColor.html#C1_Win_Document_Util_C1DXExportGraphics_GetBackColor_C1_Document_RenderFragment_">GetBackColor(RenderFragment)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the backcolor of parent <span class="xref">C1.Document.RenderFragment</span> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1DXExportGraphics_GetBrushImage_C1_Document_C1Brush_C1_Interop_Point_C1_Interop_Size_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.GetBrushImage(C1.Document.C1Brush,C1.Interop.Point,C1.Interop.Size)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.GetBrushImage.html#C1_Win_Document_Util_C1DXExportGraphics_GetBrushImage_C1_Document_C1Brush_C1_Interop_Point_C1_Interop_Size_">GetBrushImage(C1Brush, Point, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the brush image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Document_Util_C1DXExportGraphics_GetRtfImage_System_Drawing_Graphics_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_C1_Interop_Size__" data-uid="C1.Win.Document.Util.C1DXExportGraphics.GetRtfImage(System.Drawing.Graphics,System.String,System.Int32,System.Int32,C1.Interop.Rect,System.Boolean,C1.Interop.Size@)">
          <a class="xref" href="C1.Win.Document.Util.C1DXExportGraphics.GetRtfImage.html#C1_Win_Document_Util_C1DXExportGraphics_GetRtfImage_System_Drawing_Graphics_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_C1_Interop_Size__">GetRtfImage(Graphics, string, int, int, Rect, bool, out Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets specified RTF text into metafile and returns this metafile.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
