[]
IWICColorContext
[Guid("3C613A02-34B2-44ea-9A7C-45AEA9C6FD6D")]
public class ColorContext : ComObject, IDisposable, IUnknown
Initializes a new instance of the ColorContext class.
public ColorContext(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Gets the color context profile.
public DataStream Profile { get; }
Initializes a new instance of the ColorContext class.
public static ColorContext Create(ImagingFactory factory)
factory
ImagingFactoryThe factory.
HRESULT IWICColorContext::GetExifColorSpace([Out] unsigned int* pValue)
public int GetExifColorSpace()
HRESULT IWICColorContext::GetProfileBytes([In] unsigned int cbBuffer,[In] void* pbBuffer,[Out] unsigned int* pcbActual)
public int GetProfileBytes(int buffer, IntPtr bufferRef)
buffer
intbufferRef
System.IntPtrHRESULT IWICColorContext::GetType([Out] WICColorContextType* pType)
public ColorContextType GetTypeInfo()
HRESULT IWICColorContext::InitializeFromExifColorSpace([In] unsigned int value)
public void InitializeFromExifColorSpace(int value)
value
intHRESULT IWICColorContext::InitializeFromFilename([In] const wchar_t* wzFilename)
public void InitializeFromFilename(string filename)
filename
stringInitializes from memory.
public void InitializeFromMemory(DataPointer dataPointer)
dataPointer
DataPointerThe data pointer.
HRESULT IWICColorContext::InitializeFromMemory([In] const void* pbBuffer,[In] unsigned int cbBufferSize)
public void InitializeFromMemory(IntPtr bufferRef, int bufferSize)
bufferRef
System.IntPtrbufferSize
intPerforms an explicit conversion from System.IntPtr to ColorContext.
public static explicit operator ColorContext(IntPtr nativePointer)
nativePointer
System.IntPtr