[]
ID2D1ColorContext
[Guid("1c4820bb-5771-4518-a581-2fe4dd0ec657")]
public class ColorContext : Resource, IDisposable, IUnknown
Initializes a new instance of the ColorContext class.
public ColorContext(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Gets the profile data.
public byte[] ProfileData { get; }
Initializes a new instance of ColorContext class from a color profile.
public static ColorContext Create(EffectContext context, ColorSpace space, byte[] profileRef)
context
EffectContextspace
ColorSpaceprofileRef
byte[]Initializes a new instance of ColorContext class from WIC color context.
public static ColorContext Create(EffectContext context, ColorContext wicColorContext)
context
EffectContextwicColorContext
ColorContextInitializes a new instance of ColorContext class from a filename.
public static ColorContext Create(EffectContext context, string filename)
context
EffectContextfilename
stringD2D1_COLOR_SPACE ID2D1ColorContext::GetColorSpace()
public ColorSpace GetColorSpace()
HRESULT ID2D1ColorContext::GetProfile([Out, Buffer] unsigned char* profile,[In] unsigned int profileSize)
public void GetProfile(byte[] rofileRef, int profileSize)
rofileRef
byte[]profileSize
intunsigned int ID2D1ColorContext::GetProfileSize()
public int GetProfileSize()
Performs an explicit conversion from System.IntPtr to ColorContext.
public static explicit operator ColorContext(IntPtr nativePointer)
nativePointer
System.IntPtr