Class ColorContext
[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
ImagingFactoryThe 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
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
Methods
InitializeFromExifColorSpace(int)
Initializes the color context using an Exchangeable Image File (EXIF) color space.
public void InitializeFromExifColorSpace(int value)
Parameters
value
intThe value of the EXIF color space.
Value Meaning - 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
stringThe 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
DataPointerThe data pointer.
Operators
explicit operator ColorContext(nint)
public static explicit operator ColorContext(nint nativePtr)
Parameters
nativePtr
nint