[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.WIC.ColorContext

Class ColorContext

Namespace
GrapeCity.Documents.DX.WIC
Assembly
GcDocs.DX.Windows.dll

IWICColorContext

[Guid("3C613A02-34B2-44ea-9A7C-45AEA9C6FD6D")]
public class ColorContext : ComObject, IDisposable, IUnknown
Inheritance
object
ColorContext
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ColorContext(IntPtr)

Initializes a new instance of the ColorContext class.

public ColorContext(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Profile

Gets the color context profile.

public DataStream Profile { get; }

Property Value

DataStream

Methods

Create(ImagingFactory)

Initializes a new instance of the ColorContext class.

public static ColorContext Create(ImagingFactory factory)

Parameters

factory ImagingFactory

The factory.

Returns

ColorContext

GetExifColorSpace()

HRESULT IWICColorContext::GetExifColorSpace([Out] unsigned int* pValue)

public int GetExifColorSpace()

Returns

int

GetProfileBytes(int, IntPtr)

HRESULT IWICColorContext::GetProfileBytes([In] unsigned int cbBuffer,[In] void* pbBuffer,[Out] unsigned int* pcbActual)

public int GetProfileBytes(int buffer, IntPtr bufferRef)

Parameters

buffer int
bufferRef System.IntPtr

Returns

int

GetTypeInfo()

HRESULT IWICColorContext::GetType([Out] WICColorContextType* pType)

public ColorContextType GetTypeInfo()

Returns

ColorContextType

InitializeFromExifColorSpace(int)

HRESULT IWICColorContext::InitializeFromExifColorSpace([In] unsigned int value)

public void InitializeFromExifColorSpace(int value)

Parameters

value int

InitializeFromFilename(string)

HRESULT IWICColorContext::InitializeFromFilename([In] const wchar_t* wzFilename)

public void InitializeFromFilename(string filename)

Parameters

filename string

InitializeFromMemory(DataPointer)

Initializes from memory.

public void InitializeFromMemory(DataPointer dataPointer)

Parameters

dataPointer DataPointer

The data pointer.

InitializeFromMemory(IntPtr, int)

HRESULT IWICColorContext::InitializeFromMemory([In] const void* pbBuffer,[In] unsigned int cbBufferSize)

public void InitializeFromMemory(IntPtr bufferRef, int bufferSize)

Parameters

bufferRef System.IntPtr
bufferSize int

Operators

explicit operator ColorContext(IntPtr)

Performs an explicit conversion from System.IntPtr to ColorContext.

public static explicit operator ColorContext(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

ColorContext