# C1.Util.DX.WIC.BitmapSource

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_WIC_BitmapSource" data-uid="C1.Util.DX.WIC.BitmapSource" class="text-break">BitmapSource Class
</h1>
  <div class="markdown level0 summary"><p>IWICBitmapSource</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">BitmapSource</span></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.Bitmap.html">Bitmap</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.BitmapClipper.html">BitmapClipper</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.BitmapFlipRotator.html">BitmapFlipRotator</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.BitmapFrameDecode.html">BitmapFrameDecode</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.BitmapScaler.html">BitmapScaler</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.ColorTransform.html">ColorTransform</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.FormatConverter.html">FormatConverter</a></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.WIC.PlanarFormatConverter.html">PlanarFormatConverter</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.WIC.html">C1.Util.DX.WIC</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_WIC_BitmapSource_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;00000120-a8f2-4877-ba0a-fd2b6645fb94&quot;)]
public class BitmapSource : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;00000120-a8f2-4877-ba0a-fd2b6645fb94&quot;)&gt;
Public Class BitmapSource
    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_BitmapSource__ctor_System_IntPtr_" data-uid="C1.Util.DX.WIC.BitmapSource.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.-ctor.html#C1_Util_DX_WIC_BitmapSource__ctor_System_IntPtr_">BitmapSource(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.WIC.BitmapSource.html">BitmapSource</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_BitmapSource_Size" data-uid="C1.Util.DX.WIC.BitmapSource.Size">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.Size.html#C1_Util_DX_WIC_BitmapSource_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the pixel width and height of the bitmap.</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_BitmapSource_CopyPalette_C1_Util_DX_WIC_Palette_System_Boolean_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPalette(C1.Util.DX.WIC.Palette,System.Boolean)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPalette.html#C1_Util_DX_WIC_BitmapSource_CopyPalette_C1_Util_DX_WIC_Palette_System_Boolean_">CopyPalette(Palette, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSource::CopyPalette([In, Optional] IWICPalette* pIPalette)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels_C1_Util_DX_RectL_System_Byte___System_Int32_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels(C1.Util.DX.RectL,System.Byte[],System.Int32)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels_C1_Util_DX_RectL_System_Byte___System_Int32_">CopyPixels(RectL, byte[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels_C1_Util_DX_RectL_System_Int32_C1_Util_DX_DataPointer_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels(C1.Util.DX.RectL,System.Int32,C1.Util.DX.DataPointer)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels_C1_Util_DX_RectL_System_Int32_C1_Util_DX_DataPointer_">CopyPixels(RectL, int, DataPointer)</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels_System_Byte___System_Int32_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels(System.Byte[],System.Int32)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels_System_Byte___System_Int32_">CopyPixels(byte[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels_System_Int32_C1_Util_DX_DataPointer_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels(System.Int32,C1.Util.DX.DataPointer)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels_System_Int32_C1_Util_DX_DataPointer_">CopyPixels(int, DataPointer)</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels_System_Int32_System_IntPtr_System_Int32_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels(System.Int32,System.IntPtr,System.Int32)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels_System_Int32_System_IntPtr_System_Int32_">CopyPixels(int, IntPtr, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels_System_IntPtr_System_Int32_System_Int32_System_IntPtr_" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels(System.IntPtr,System.Int32,System.Int32,System.IntPtr)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels_System_IntPtr_System_Int32_System_Int32_System_IntPtr_">CopyPixels(IntPtr, int, int, IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSource::CopyPixels([In] const void* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels__1_C1_Util_DX_RectL___0___" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels``1(C1.Util.DX.RectL,``0[])">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels__1_C1_Util_DX_RectL___0___">CopyPixels&lt;T&gt;(RectL, T[])</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_CopyPixels__1___0___" data-uid="C1.Util.DX.WIC.BitmapSource.CopyPixels``1(``0[])">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.CopyPixels.html#C1_Util_DX_WIC_BitmapSource_CopyPixels__1___0___">CopyPixels&lt;T&gt;(T[])</a>
        </td>
        <td class="markdown level1 summary"><p>Instructs the object to produce pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_GetPixelFormat" data-uid="C1.Util.DX.WIC.BitmapSource.GetPixelFormat">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.GetPixelFormat.html#C1_Util_DX_WIC_BitmapSource_GetPixelFormat">GetPixelFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSource::GetPixelFormat([Out] GUID* pPixelFormat)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_GetResolution_System_Double__System_Double__" data-uid="C1.Util.DX.WIC.BitmapSource.GetResolution(System.Double@,System.Double@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.GetResolution.html#C1_Util_DX_WIC_BitmapSource_GetResolution_System_Double__System_Double__">GetResolution(out double, out double)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSource::GetResolution([Out] double* pDpiX,[Out] double* pDpiY)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSource_GetSize_System_Int32__System_Int32__" data-uid="C1.Util.DX.WIC.BitmapSource.GetSize(System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.GetSize.html#C1_Util_DX_WIC_BitmapSource_GetSize_System_Int32__System_Int32__">GetSize(out int, out int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSource::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight)</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_BitmapSource_op_Explicit_System_IntPtr__C1_Util_DX_WIC_BitmapSource" data-uid="C1.Util.DX.WIC.BitmapSource.op_Explicit(System.IntPtr)~C1.Util.DX.WIC.BitmapSource">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSource.op_Explicit.html#C1_Util_DX_WIC_BitmapSource_op_Explicit_System_IntPtr__C1_Util_DX_WIC_BitmapSource">explicit operator BitmapSource(IntPtr)</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">IntPtr</a> to <a class="xref" href="C1.Util.DX.WIC.BitmapSource.html">BitmapSource</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
