# C1.Util.DX.WIC.BitmapLock

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_WIC_BitmapLock" data-uid="C1.Util.DX.WIC.BitmapLock" class="text-break">BitmapLock Class
</h1>
  <div class="markdown level0 summary"><p>IWICBitmapLock</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"><span class="xref">BitmapLock</span></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.WIC.html">C1.Util.DX.WIC</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_WIC_BitmapLock_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;00000123-a8f2-4877-ba0a-fd2b6645fb94&quot;)]
public class BitmapLock : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;00000123-a8f2-4877-ba0a-fd2b6645fb94&quot;)&gt;
Public Class BitmapLock
    Inherits ComObject
    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_WIC_BitmapLock__ctor_System_IntPtr_" data-uid="C1.Util.DX.WIC.BitmapLock.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.-ctor.html#C1_Util_DX_WIC_BitmapLock__ctor_System_IntPtr_">BitmapLock(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.WIC.BitmapLock.html">BitmapLock</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</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_WIC_BitmapLock_Data" data-uid="C1.Util.DX.WIC.BitmapLock.Data">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.Data.html#C1_Util_DX_WIC_BitmapLock_Data">Data</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a pointer to the data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapLock_Size" data-uid="C1.Util.DX.WIC.BitmapLock.Size">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.Size.html#C1_Util_DX_WIC_BitmapLock_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the size.</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_WIC_BitmapLock_GetDataPointer" data-uid="C1.Util.DX.WIC.BitmapLock.GetDataPointer">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.GetDataPointer.html#C1_Util_DX_WIC_BitmapLock_GetDataPointer">GetDataPointer()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapLock_GetDataPointer_System_Int32__" data-uid="C1.Util.DX.WIC.BitmapLock.GetDataPointer(System.Int32@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.GetDataPointer.html#C1_Util_DX_WIC_BitmapLock_GetDataPointer_System_Int32__">GetDataPointer(out int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapLock_GetPixelFormat" data-uid="C1.Util.DX.WIC.BitmapLock.GetPixelFormat">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.GetPixelFormat.html#C1_Util_DX_WIC_BitmapLock_GetPixelFormat">GetPixelFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapLock::GetPixelFormat([Out] GUID* pPixelFormat)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapLock_GetSize_System_Int32__System_Int32__" data-uid="C1.Util.DX.WIC.BitmapLock.GetSize(System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.GetSize.html#C1_Util_DX_WIC_BitmapLock_GetSize_System_Int32__System_Int32__">GetSize(out int, out int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapLock::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapLock_GetStride" data-uid="C1.Util.DX.WIC.BitmapLock.GetStride">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.GetStride.html#C1_Util_DX_WIC_BitmapLock_GetStride">GetStride()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapLock::GetStride([Out] unsigned int* pcbStride)</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_WIC_BitmapLock_op_Explicit_System_IntPtr__C1_Util_DX_WIC_BitmapLock" data-uid="C1.Util.DX.WIC.BitmapLock.op_Explicit(System.IntPtr)~C1.Util.DX.WIC.BitmapLock">
          <a class="xref" href="C1.Util.DX.WIC.BitmapLock.op_Explicit.html#C1_Util_DX_WIC_BitmapLock_op_Explicit_System_IntPtr__C1_Util_DX_WIC_BitmapLock">explicit operator BitmapLock(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.WIC.BitmapLock.html">BitmapLock</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
