# C1.Util.DX.DirectWrite.GlyphRunAnalysis.CreateAlphaTexture

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_CreateAlphaTexture_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.CreateAlphaTexture*">CreateAlphaTexture Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_CreateAlphaTexture_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.CreateAlphaTexture*"></a>
<h4 id="C1_Util_DX_DirectWrite_GlyphRunAnalysis_CreateAlphaTexture_C1_Util_DX_DirectWrite_TextureType_C1_Util_DX_RectL_System_Byte___System_Int32_" data-uid="C1.Util.DX.DirectWrite.GlyphRunAnalysis.CreateAlphaTexture(C1.Util.DX.DirectWrite.TextureType,C1.Util.DX.RectL,System.Byte[],System.Int32)">CreateAlphaTexture(TextureType, RectL, byte[], int)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteGlyphRunAnalysis::CreateAlphaTexture([In] DWRITE_TEXTURE_TYPE textureType,[In] const RECT* textureBounds,[Out, Buffer] unsigned char* alphaValues,[In] unsigned int bufferSize)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CreateAlphaTexture(TextureType textureType, RectL textureBounds, byte[] alphaValues, int bufferSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CreateAlphaTexture(textureType As TextureType, textureBounds As RectL, alphaValues As Byte(), bufferSize 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="C1.Util.DX.DirectWrite.TextureType.html">TextureType</a></td>
      <td><span class="parametername">textureType</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.RectL.html">RectL</a></td>
      <td><span class="parametername">textureBounds</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">alphaValues</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">bufferSize</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
