Class IccProfile
Class used to represented the International Color Consortium profile
public class IccProfile
- Inheritance
-
IccProfile
- Inherited Members
Constructors
IccProfile()
protected IccProfile()
Fields
data
protected byte[] data
Field Value
- byte[]
numComponents
protected int numComponents
Field Value
Methods
GetData()
Get the icc color profile data.
public virtual byte[] GetData()
Returns
- byte[]
byte[] containing the data
GetIccColorSpaceName(byte[])
Get the Color space name of the icc profile found in the data.
public static string GetIccColorSpaceName(byte[] data)
Parameters
data
byte[]byte[] containing the icc profile
Returns
- string
String containing the color space of the profile
GetIccDeviceClass(byte[])
Get the device class of the icc profile found in the data.
public static string GetIccDeviceClass(byte[] data)
Parameters
data
byte[]byte[] containing the icc profile
Returns
- string
String containing the device class of the profile
GetIccNumberOfComponents(byte[])
Get the number of color components of the icc profile found in the data.
public static int? GetIccNumberOfComponents(byte[] data)
Parameters
data
byte[]byte[] containing the icc profile
Returns
- int?
Number of color components
GetInstance(byte[])
Construct an icc profile from the passed byte[], using the passed number of components.
public static IccProfile GetInstance(byte[] data)
Parameters
data
byte[]byte[] containing the raw icc profile data
Returns
- IccProfile
IccProfile constructed from the data
GetInstance(byte[], int)
Construct an icc profile from the passed byte[], using the passed number of components.
public static IccProfile GetInstance(byte[] data, int numComponents)
Parameters
data
byte[]byte[] containing the raw icc profile data
numComponents
intnumber of components the profile contains
Returns
- IccProfile
IccProfile constructed from the data
GetInstance(Stream)
Construct an icc profile from the passed InputStream.
public static IccProfile GetInstance(Stream stream)
Parameters
stream
Streaminputstream containing the profile
Returns
- IccProfile
IccProfile constructed from the data
GetInstance(string)
Construct an icc profile from the file found at the passed path
public static IccProfile GetInstance(string filename)
Parameters
filename
stringpath to the file contaning the profile
Returns
- IccProfile
IccProfile constructed from the data
GetInstance(RandomAccessFileOrArray)
Construct an icc profile from the passed random-access file or array.
public static IccProfile GetInstance(RandomAccessFileOrArray file)
Parameters
file
RandomAccessFileOrArrayrandom-access file or array containing the profile
Returns
- IccProfile
IccProfile constructed from the data
GetNumComponents()
Get the number of color components in the profile.
public virtual int GetNumComponents()
Returns
- int
number of components