# C1.Util.DX.DirectWrite.BitmapRenderTarget.DrawGlyphRun

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_BitmapRenderTarget_DrawGlyphRun_" data-uid="C1.Util.DX.DirectWrite.BitmapRenderTarget.DrawGlyphRun*">DrawGlyphRun Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_BitmapRenderTarget_DrawGlyphRun_" data-uid="C1.Util.DX.DirectWrite.BitmapRenderTarget.DrawGlyphRun*"></a>
<h4 id="C1_Util_DX_DirectWrite_BitmapRenderTarget_DrawGlyphRun_System_Single_System_Single_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_RenderingParams_System_Int32_" data-uid="C1.Util.DX.DirectWrite.BitmapRenderTarget.DrawGlyphRun(System.Single,System.Single,C1.Util.DX.DirectWrite.MeasuringMode,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.RenderingParams,System.Int32)">DrawGlyphRun(float, float, MeasuringMode, GlyphRun, RenderingParams, int)</h4>
<div class="markdown level1 summary"><p>Draws a run of glyphs to a bitmap target at the specified position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, RenderingParams renderingParams, int textColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawGlyphRun(baselineOriginX As Single, baselineOriginY As Single, measuringMode As MeasuringMode, glyphRun As GlyphRun, renderingParams As RenderingParams, textColor As Integer)</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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginX</span></td>
      <td><p>The horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.</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>The vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.</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>The measuring method for glyphs in the run, used with the other properties to determine the rendering mode.</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>The structure containing the properties of the glyph run.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingParams.html">RenderingParams</a></td>
      <td><span class="parametername">renderingParams</span></td>
      <td><p>The object that controls rendering behavior.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textColor</span></td>
      <td><p>The foreground color of the text.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_DirectWrite_BitmapRenderTarget_DrawGlyphRun_" data-uid="C1.Util.DX.DirectWrite.BitmapRenderTarget.DrawGlyphRun*"></a>
<h4 id="C1_Util_DX_DirectWrite_BitmapRenderTarget_DrawGlyphRun_System_Single_System_Single_C1_Util_DX_DirectWrite_MeasuringMode_C1_Util_DX_DirectWrite_GlyphRun_C1_Util_DX_DirectWrite_RenderingParams_System_Int32_C1_Util_DX_RectL__" data-uid="C1.Util.DX.DirectWrite.BitmapRenderTarget.DrawGlyphRun(System.Single,System.Single,C1.Util.DX.DirectWrite.MeasuringMode,C1.Util.DX.DirectWrite.GlyphRun,C1.Util.DX.DirectWrite.RenderingParams,System.Int32,C1.Util.DX.RectL@)">DrawGlyphRun(float, float, MeasuringMode, GlyphRun, RenderingParams, int, out RectL)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteBitmapRenderTarget::DrawGlyphRun([In] float baselineOriginX,[In] float baselineOriginY,[In] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] IDWriteRenderingParams* renderingParams,[In] COLORREF textColor,[Out, Optional] RECT* blackBoxRect)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, RenderingParams renderingParams, int textColor, out RectL blackBoxRect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawGlyphRun(baselineOriginX As Single, baselineOriginY As Single, measuringMode As MeasuringMode, glyphRun As GlyphRun, renderingParams As RenderingParams, textColor As Integer, ByRef blackBoxRect As RectL)</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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">baselineOriginX</span></td>
      <td></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></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></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingParams.html">RenderingParams</a></td>
      <td><span class="parametername">renderingParams</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">textColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.RectL.html">RectL</a></td>
      <td><span class="parametername">blackBoxRect</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
