Table of Contents

Class ColorContext

Namespace
SharpDX.WIC
Assembly
SharpDX.Direct2D1.dll
[Guid("3C613A02-34B2-44ea-9A7C-45AEA9C6FD6D")]
public class ColorContext : ComObject
Inheritance
ColorContext

Constructors

ColorContext(ImagingFactory)

Initializes a new instance of the ColorContext class.

public ColorContext(ImagingFactory factory)

Parameters

factory ImagingFactory

The factory.

ColorContext(nint)

public ColorContext(nint nativePtr)

Parameters

nativePtr nint

Properties

ExifColorSpace

Retrieves the Exchangeable Image File (EXIF) color space color context.

public int ExifColorSpace { get; }

Property Value

int

Remarks

This method should only be used when IWICColorContext::GetType indicates WICColorContextExifColorSpace.

Profile

Gets the color context profile.

public DataStream Profile { get; }

Property Value

DataStream

TypeInfo

Retrieves the color context type.

public ColorContextType TypeInfo { get; }

Property Value

ColorContextType

Methods

InitializeFromExifColorSpace(int)

Initializes the color context using an Exchangeable Image File (EXIF) color space.

public void InitializeFromExifColorSpace(int value)

Parameters

value int

The value of the EXIF color space.

ValueMeaning
1

A sRGB color space.

2

An Adobe RGB color space.

?

Remarks

Once a color context has been initialized, it can't be re-initialized.

InitializeFromFilename(string)

Initializes the color context from the given file.

public void InitializeFromFilename(string filename)

Parameters

filename string

The name of the file.

Remarks

Once a color context has been initialized, it can't be re-initialized.

InitializeFromMemory(DataPointer)

Initializes from memory.

public void InitializeFromMemory(DataPointer dataPointer)

Parameters

dataPointer DataPointer

The data pointer.

Operators

explicit operator ColorContext(nint)

public static explicit operator ColorContext(nint nativePtr)

Parameters

nativePtr nint

Returns

ColorContext