# C1.Util.DX.Direct2D.ColorContext

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_ColorContext" data-uid="C1.Util.DX.Direct2D.ColorContext" class="text-break">ColorContext Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1ColorContext</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.Direct2D.Resource.html">Resource</a></div>
    <div class="level5"><span class="xref">ColorContext</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.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_ColorContext_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;1c4820bb-5771-4518-a581-2fe4dd0ec657&quot;)]
public class ColorContext : Resource, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;1c4820bb-5771-4518-a581-2fe4dd0ec657&quot;)&gt;
Public Class ColorContext
    Inherits Resource
    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_Direct2D_ColorContext__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.ColorContext.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.-ctor.html#C1_Util_DX_Direct2D_ColorContext__ctor_System_IntPtr_">ColorContext(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.html">ColorContext</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_Direct2D_ColorContext_ProfileData" data-uid="C1.Util.DX.Direct2D.ColorContext.ProfileData">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.ProfileData.html#C1_Util_DX_Direct2D_ColorContext_ProfileData">ProfileData</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the profile data.</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_Direct2D_ColorContext_Create_C1_Util_DX_Direct2D_EffectContext_C1_Util_DX_Direct2D_ColorSpace_System_Byte___" data-uid="C1.Util.DX.Direct2D.ColorContext.Create(C1.Util.DX.Direct2D.EffectContext,C1.Util.DX.Direct2D.ColorSpace,System.Byte[])">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.Create.html#C1_Util_DX_Direct2D_ColorContext_Create_C1_Util_DX_Direct2D_EffectContext_C1_Util_DX_Direct2D_ColorSpace_System_Byte___">Create(EffectContext, ColorSpace, byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.html">ColorContext</a> class from a color profile.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ColorContext_Create_C1_Util_DX_Direct2D_EffectContext_C1_Util_DX_WIC_ColorContext_" data-uid="C1.Util.DX.Direct2D.ColorContext.Create(C1.Util.DX.Direct2D.EffectContext,C1.Util.DX.WIC.ColorContext)">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.Create.html#C1_Util_DX_Direct2D_ColorContext_Create_C1_Util_DX_Direct2D_EffectContext_C1_Util_DX_WIC_ColorContext_">Create(EffectContext, ColorContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.html">ColorContext</a> class from WIC color context.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ColorContext_Create_C1_Util_DX_Direct2D_EffectContext_System_String_" data-uid="C1.Util.DX.Direct2D.ColorContext.Create(C1.Util.DX.Direct2D.EffectContext,System.String)">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.Create.html#C1_Util_DX_Direct2D_ColorContext_Create_C1_Util_DX_Direct2D_EffectContext_System_String_">Create(EffectContext, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.html">ColorContext</a> class from a filename.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ColorContext_GetColorSpace" data-uid="C1.Util.DX.Direct2D.ColorContext.GetColorSpace">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.GetColorSpace.html#C1_Util_DX_Direct2D_ColorContext_GetColorSpace">GetColorSpace()</a>
        </td>
        <td class="markdown level1 summary"><p>D2D1_COLOR_SPACE ID2D1ColorContext::GetColorSpace()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ColorContext_GetProfile_System_Byte___System_Int32_" data-uid="C1.Util.DX.Direct2D.ColorContext.GetProfile(System.Byte[],System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.GetProfile.html#C1_Util_DX_Direct2D_ColorContext_GetProfile_System_Byte___System_Int32_">GetProfile(byte[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1ColorContext::GetProfile([Out, Buffer] unsigned char* profile,[In] unsigned int profileSize)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ColorContext_GetProfileSize" data-uid="C1.Util.DX.Direct2D.ColorContext.GetProfileSize">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.GetProfileSize.html#C1_Util_DX_Direct2D_ColorContext_GetProfileSize">GetProfileSize()</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned int ID2D1ColorContext::GetProfileSize()</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_Direct2D_ColorContext_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_ColorContext" data-uid="C1.Util.DX.Direct2D.ColorContext.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.ColorContext">
          <a class="xref" href="C1.Util.DX.Direct2D.ColorContext.op_Explicit.html#C1_Util_DX_Direct2D_ColorContext_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_ColorContext">explicit operator ColorContext(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.Direct2D.ColorContext.html">ColorContext</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
