[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.ColorContext

Class ColorContext

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

ID2D1ColorContext

[Guid("1c4820bb-5771-4518-a581-2fe4dd0ec657")]
public class ColorContext : Resource, 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

ProfileData

Gets the profile data.

public byte[] ProfileData { get; }

Property Value

byte[]

Methods

Create(EffectContext, ColorSpace, byte[])

Initializes a new instance of ColorContext class from a color profile.

public static ColorContext Create(EffectContext context, ColorSpace space, byte[] profileRef)

Parameters

context EffectContext
space ColorSpace
profileRef byte[]

Returns

ColorContext

Create(EffectContext, ColorContext)

Initializes a new instance of ColorContext class from WIC color context.

public static ColorContext Create(EffectContext context, ColorContext wicColorContext)

Parameters

context EffectContext
wicColorContext ColorContext

Returns

ColorContext

Create(EffectContext, string)

Initializes a new instance of ColorContext class from a filename.

public static ColorContext Create(EffectContext context, string filename)

Parameters

context EffectContext
filename string

Returns

ColorContext

GetColorSpace()

D2D1_COLOR_SPACE ID2D1ColorContext::GetColorSpace()

public ColorSpace GetColorSpace()

Returns

ColorSpace

GetProfile(byte[], int)

HRESULT ID2D1ColorContext::GetProfile([Out, Buffer] unsigned char* profile,[In] unsigned int profileSize)

public void GetProfile(byte[] rofileRef, int profileSize)

Parameters

rofileRef byte[]
profileSize int

GetProfileSize()

unsigned int ID2D1ColorContext::GetProfileSize()

public int GetProfileSize()

Returns

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