# C1.Util.DX.DirectWrite.GlyphRunAnalysis.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.Create*"></a>
<h4 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DirectWrite_GlyphRun_System_Single_C1_Util_DX_DirectWrite_RenderingMode_C1_Util_DX_DirectWrite_MeasuringMode_System_Single_System_Single_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.Create(C1.Util.DX.DirectWrite.Factory,C1.Util.DX.DirectWrite.GlyphRun,System.Single,C1.Util.DX.DirectWrite.RenderingMode,C1.Util.DX.DirectWrite.MeasuringMode,System.Single,System.Single)">Create(Factory, GlyphRun, float, RenderingMode, MeasuringMode, float, float)</h4>
<div class="markdown level1 summary"><p>Creates a glyph run analysis object, which encapsulates information used to render a glyph run.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GlyphRunAnalysis Create(Factory factory, GlyphRun glyphRun, float pixelsPerDip, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, glyphRun As GlyphRun, pixelsPerDip As Single, renderingMode As RenderingMode, measuringMode As MeasuringMode, baselineOriginX As Single, baselineOriginY As Single) As GlyphRunAnalysis</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="C1.Util.DX.DirectWrite.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>The factory.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphRun.html">GlyphRun</a></td>
      <td><span class="parametername">glyphRun</span></td>
      <td><p>A structure that contains the properties of the glyph run (font face, advances, and so on).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">pixelsPerDip</span></td>
      <td><p>Number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingMode.html">RenderingMode</a></td>
      <td><span class="parametername">renderingMode</span></td>
      <td><p>A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.MeasuringMode.html">MeasuringMode</a></td>
      <td><span class="parametername">measuringMode</span></td>
      <td><p>Specifies the measuring mode to use with glyphs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginX</span></td>
      <td><p>The horizontal position (X-coordinate) of the baseline origin, in DIPs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginY</span></td>
      <td><p>Vertical position (Y-coordinate) of the baseline origin, in DIPs.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphRunAnalysis.html">GlyphRunAnalysis</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DirectWrite_GlyphRun_System_Single_C1_Util_DX_DirectWrite_RenderingMode_C1_Util_DX_DirectWrite_MeasuringMode_System_Single_System_Single__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache.</p>
</div>


<a id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.Create*"></a>
<h4 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DirectWrite_GlyphRun_System_Single_System_Nullable_C1_Util_DX_Matrix3x2__C1_Util_DX_DirectWrite_RenderingMode_C1_Util_DX_DirectWrite_MeasuringMode_System_Single_System_Single_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.Create(C1.Util.DX.DirectWrite.Factory,C1.Util.DX.DirectWrite.GlyphRun,System.Single,System.Nullable{C1.Util.DX.Matrix3x2},C1.Util.DX.DirectWrite.RenderingMode,C1.Util.DX.DirectWrite.MeasuringMode,System.Single,System.Single)">Create(Factory, GlyphRun, float, Matrix3x2?, RenderingMode, MeasuringMode, float, float)</h4>
<div class="markdown level1 summary"><p>Creates a glyph run analysis object, which encapsulates information used to render a glyph run.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GlyphRunAnalysis Create(Factory factory, GlyphRun glyphRun, float pixelsPerDip, Matrix3x2? transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, glyphRun As GlyphRun, pixelsPerDip As Single, transform As Matrix3x2?, renderingMode As RenderingMode, measuringMode As MeasuringMode, baselineOriginX As Single, baselineOriginY As Single) As GlyphRunAnalysis</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="C1.Util.DX.DirectWrite.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>The factory.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphRun.html">GlyphRun</a></td>
      <td><span class="parametername">glyphRun</span></td>
      <td><p>A structure that contains the properties of the glyph run (font face, advances, and so on).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">pixelsPerDip</span></td>
      <td><p>Number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix3x2.html">Matrix3x2</a>?</td>
      <td><span class="parametername">transform</span></td>
      <td><p>Optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified the emSize and pixelsPerDip.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingMode.html">RenderingMode</a></td>
      <td><span class="parametername">renderingMode</span></td>
      <td><p>A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.MeasuringMode.html">MeasuringMode</a></td>
      <td><span class="parametername">measuringMode</span></td>
      <td><p>Specifies the measuring mode to use with glyphs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginX</span></td>
      <td><p>The horizontal position (X-coordinate) of the baseline origin, in DIPs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginY</span></td>
      <td><p>Vertical position (Y-coordinate) of the baseline origin, in DIPs.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.GlyphRunAnalysis.html">GlyphRunAnalysis</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_Create_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DirectWrite_GlyphRun_System_Single_System_Nullable_C1_Util_DX_Matrix3x2__C1_Util_DX_DirectWrite_RenderingMode_C1_Util_DX_DirectWrite_MeasuringMode_System_Single_System_Single__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache.</p>
</div>
</div>
