# C1.Util.DX.WIC.BitmapSourceTransform

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_WIC_BitmapSourceTransform" data-uid="C1.Util.DX.WIC.BitmapSourceTransform" class="text-break">BitmapSourceTransform Class
</h1>
  <div class="markdown level0 summary"><p>IWICBitmapSourceTransform</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">BitmapSourceTransform</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.4.8.dll</h6>
  <h5 id="C1_Util_DX_WIC_BitmapSourceTransform_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;3B16811B-6A43-4ec9-B713-3D5A0C13B940&quot;)]
public class BitmapSourceTransform : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;3B16811B-6A43-4ec9-B713-3D5A0C13B940&quot;)&gt;
Public Class BitmapSourceTransform
    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_BitmapSourceTransform__ctor_System_IntPtr_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.-ctor.html#C1_Util_DX_WIC_BitmapSourceTransform__ctor_System_IntPtr_">BitmapSourceTransform(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.html">BitmapSourceTransform</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_WIC_BitmapSourceTransform_CopyPixels_C1_Util_DX_RectL_System_Int32_System_Int32_System_Guid_C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels(C1.Util.DX.RectL,System.Int32,System.Int32,System.Guid,C1.Util.DX.WIC.BitmapTransformOptions,System.Int32,C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels.html#C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_C1_Util_DX_RectL_System_Int32_System_Int32_System_Guid_C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_C1_Util_DX_DataStream_">CopyPixels(RectL, int, int, Guid, BitmapTransformOptions, int, DataStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies pixel data using the supplied input parameters.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_Int32_System_Int32_C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels(System.Int32,System.Int32,C1.Util.DX.WIC.BitmapTransformOptions,System.Int32,C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels.html#C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_Int32_System_Int32_C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_C1_Util_DX_DataStream_">CopyPixels(int, int, BitmapTransformOptions, int, DataStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies pixel data using the supplied input parameters.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_Int32_System_Int32_System_Guid_C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels(System.Int32,System.Int32,System.Guid,C1.Util.DX.WIC.BitmapTransformOptions,System.Int32,C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels.html#C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_Int32_System_Int32_System_Guid_C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_C1_Util_DX_DataStream_">CopyPixels(int, int, Guid, BitmapTransformOptions, int, DataStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies pixel data using the supplied input parameters.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_Int32_System_Int32_System_Int32_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels(System.Int32,System.Int32,System.Int32,C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels.html#C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_Int32_System_Int32_System_Int32_C1_Util_DX_DataStream_">CopyPixels(int, int, int, DataStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies pixel data using the supplied input parameters.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_IntPtr_System_Int32_System_Int32_System_Nullable_System_Guid__C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_System_Int32_System_IntPtr_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels(System.IntPtr,System.Int32,System.Int32,System.Nullable{System.Guid},C1.Util.DX.WIC.BitmapTransformOptions,System.Int32,System.Int32,System.IntPtr)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.CopyPixels.html#C1_Util_DX_WIC_BitmapSourceTransform_CopyPixels_System_IntPtr_System_Int32_System_Int32_System_Nullable_System_Guid__C1_Util_DX_WIC_BitmapTransformOptions_System_Int32_System_Int32_System_IntPtr_">CopyPixels(IntPtr, int, int, Guid?, BitmapTransformOptions, int, int, IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSourceTransform::CopyPixels([In] const void* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_GetClosestPixelFormat_System_Guid__" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.GetClosestPixelFormat(System.Guid@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.GetClosestPixelFormat.html#C1_Util_DX_WIC_BitmapSourceTransform_GetClosestPixelFormat_System_Guid__">GetClosestPixelFormat(ref Guid)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSourceTransform::GetClosestPixelFormat([InOut] GUID* pguidDstFormat)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_GetClosestSize_C1_Util_DX_Size2L__" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.GetClosestSize(C1.Util.DX.Size2L@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.GetClosestSize.html#C1_Util_DX_WIC_BitmapSourceTransform_GetClosestSize_C1_Util_DX_Size2L__">GetClosestSize(ref Size2L)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the closest dimensions the implementation can natively scale to given the desired dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_GetClosestSize_System_Int32__System_Int32__" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.GetClosestSize(System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.GetClosestSize.html#C1_Util_DX_WIC_BitmapSourceTransform_GetClosestSize_System_Int32__System_Int32__">GetClosestSize(ref int, ref int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSourceTransform::GetClosestSize([InOut] unsigned int* puiWidth,[InOut] unsigned int* puiHeight)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_WIC_BitmapSourceTransform_IsSupportingTransform_C1_Util_DX_WIC_BitmapTransformOptions_" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.IsSupportingTransform(C1.Util.DX.WIC.BitmapTransformOptions)">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.IsSupportingTransform.html#C1_Util_DX_WIC_BitmapSourceTransform_IsSupportingTransform_C1_Util_DX_WIC_BitmapTransformOptions_">IsSupportingTransform(BitmapTransformOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IWICBitmapSourceTransform::DoesSupportTransform([In] WICBitmapTransformOptions dstTransform,[Out] BOOL* pfIsSupported)</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_BitmapSourceTransform_op_Explicit_System_IntPtr__C1_Util_DX_WIC_BitmapSourceTransform" data-uid="C1.Util.DX.WIC.BitmapSourceTransform.op_Explicit(System.IntPtr)~C1.Util.DX.WIC.BitmapSourceTransform">
          <a class="xref" href="C1.Util.DX.WIC.BitmapSourceTransform.op_Explicit.html#C1_Util_DX_WIC_BitmapSourceTransform_op_Explicit_System_IntPtr__C1_Util_DX_WIC_BitmapSourceTransform">explicit operator BitmapSourceTransform(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.BitmapSourceTransform.html">BitmapSourceTransform</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
