# C1.Util.DX.DXGI.Surface1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_Surface1" data-uid="C1.Util.DX.DXGI.Surface1" class="text-break">Surface1 Class
</h1>
  <div class="markdown level0 summary"><p>IDXGISurface1</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"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.DXGI.DXGIObject.html">DXGIObject</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.DXGI.DeviceChild.html">DeviceChild</a></div>
    <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.Surface.html">Surface</a></div>
    <div class="level7"><span class="xref">Surface1</span></div>
      <div class="level8"><a class="xref" href="C1.Util.DX.DXGI.Surface2.html">Surface2</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.Util.DX.IUnknown.html">IUnknown</a></div>
  </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_Surface1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;4AE63092-6327-4c1b-80AE-BFE12EA32B86&quot;)]
public class Surface1 : Surface, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;4AE63092-6327-4c1b-80AE-BFE12EA32B86&quot;)&gt;
Public Class Surface1
    Inherits Surface
    Implements IDisposable, IUnknown</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_Util_DX_DXGI_Surface1__ctor_System_IntPtr_" data-uid="C1.Util.DX.DXGI.Surface1.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DXGI.Surface1.-ctor.html#C1_Util_DX_DXGI_Surface1__ctor_System_IntPtr_">Surface1(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.DXGI.Surface1.html">Surface1</a> class.</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_Util_DX_DXGI_Surface1_GetDC_C1_Util_DX_Bool_" data-uid="C1.Util.DX.DXGI.Surface1.GetDC(C1.Util.DX.Bool)">
          <a class="xref" href="C1.Util.DX.DXGI.Surface1.GetDC.html#C1_Util_DX_DXGI_Surface1_GetDC_C1_Util_DX_Bool_">GetDC(Bool)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISurface1::GetDC([In] BOOL Discard,[Out] HDC* phdc)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Surface1_ReleaseDC" data-uid="C1.Util.DX.DXGI.Surface1.ReleaseDC">
          <a class="xref" href="C1.Util.DX.DXGI.Surface1.ReleaseDC.html#C1_Util_DX_DXGI_Surface1_ReleaseDC">ReleaseDC()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the GDI device context (DC) associated with the current surface and allows rendering using Direct3D. The whole surface to be considered dirty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Surface1_ReleaseDC_C1_Util_DX_RectL_" data-uid="C1.Util.DX.DXGI.Surface1.ReleaseDC(C1.Util.DX.RectL)">
          <a class="xref" href="C1.Util.DX.DXGI.Surface1.ReleaseDC.html#C1_Util_DX_DXGI_Surface1_ReleaseDC_C1_Util_DX_RectL_">ReleaseDC(RectL)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the GDI device context (DC) associated with the current surface and allows rendering using Direct3D.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Surface1_ReleaseDC__System_Nullable_C1_Util_DX_RectL__" data-uid="C1.Util.DX.DXGI.Surface1.ReleaseDC_(System.Nullable{C1.Util.DX.RectL})">
          <a class="xref" href="C1.Util.DX.DXGI.Surface1.ReleaseDC_.html#C1_Util_DX_DXGI_Surface1_ReleaseDC__System_Nullable_C1_Util_DX_RectL__">ReleaseDC_(RectL?)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISurface1::ReleaseDC([In, Optional] RECT* pDirtyRect)</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_Surface1_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_Surface1" data-uid="C1.Util.DX.DXGI.Surface1.op_Explicit(System.IntPtr)~C1.Util.DX.DXGI.Surface1">
          <a class="xref" href="C1.Util.DX.DXGI.Surface1.op_Explicit.html#C1_Util_DX_DXGI_Surface1_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_Surface1">explicit operator Surface1(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a> to <a class="xref" href="C1.Util.DX.DXGI.Surface1.html">Surface1</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
