# C1.Util.DX.DXGI.PresentParameters.DirtyRectangles

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Util_DX_DXGI_PresentParameters_DirtyRectangles" data-uid="C1.Util.DX.DXGI.PresentParameters.DirtyRectangles" class="text-break">DirtyRectangles Field
</h1>
<div class="markdown level0 summary"><p>A list of updated rectangles that you update in the back buffer for the presented frame. An application must update every single pixel in each rectangle that it reports to the runtime; the application cannot assume that the pixels are saved from the previous frame. For more information about updating dirty rectangles, see Remarks. You can set this member to <code>null</code> if DirtyRectsCount is 0. An application must not update any pixel outside of the dirty rectangles.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.DXGI.html">C1.Util.DX.DXGI</a></h6>
<h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
<h5 id="C1_Util_DX_DXGI_PresentParameters_DirtyRectangles_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectL[] DirtyRectangles</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public DirtyRectangles As RectL()</code></pre>
</div>
<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.RectL.html">RectL</a>[]</td>
      <td>A list of updated rectangles that you update in the back buffer for the presented frame. An application must update every single pixel in each rectangle that it reports to the runtime; the application cannot assume that the pixels are saved from the previous frame. For more information about updating dirty rectangles, see Remarks. You can set this member to null if DirtyRectsCount is 0. An application must not update any pixel outside of the dirty rectangles.</td>
    </tr>
  </tbody>
</table>
</div>
