public class IccProfile extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected int |
numComponents |
Modifier | Constructor and Description |
---|---|
protected |
IccProfile() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Get the icc color profile data.
|
static String |
getIccColorSpaceName(byte[] data)
Get the Color space name of the icc profile found in the data.
|
static String |
getIccDeviceClass(byte[] data)
Get the device class of the icc profile found in the data.
|
static Integer |
getIccNumberOfComponents(byte[] data)
Get the number of color components of the icc profile found in the data.
|
static IccProfile |
getInstance(byte[] data)
Construct an icc profile from the passed byte[], using the passed number of components.
|
static IccProfile |
getInstance(byte[] data, int numComponents)
Construct an icc profile from the passed byte[], using the passed number of components.
|
static IccProfile |
getInstance(InputStream stream)
Construct an icc profile from the passed InputStream.
|
static IccProfile |
getInstance(RandomAccessFileOrArray file)
Construct an icc profile from the passed random-access file or array.
|
static IccProfile |
getInstance(String filename)
Construct an icc profile from the file found at the passed path
|
int |
getNumComponents()
Get the number of color components in the profile.
|
public static IccProfile getInstance(byte[] data, int numComponents)
data
- byte[] containing the raw icc profile data
numComponents
- number of components the profile contains
IOException
- when the specified number of components and the number of components in the created profile do not match.
public static IccProfile getInstance(byte[] data)
data
- byte[] containing the raw icc profile data
public static IccProfile getInstance(RandomAccessFileOrArray file)
file
- random-access file or array containing the profile
IOException
- if the source does not contain a valid icc profile
public static IccProfile getInstance(InputStream stream)
stream
- inputstream containing the profile
IOException
- if the source does not contain a valid icc profile
public static IccProfile getInstance(String filename)
filename
- path to the file contaning the profile
IOException
- if the source does not contain a valid icc profile
public static String getIccColorSpaceName(byte[] data)
data
- byte[] containing the icc profile
IOException
- if the source does not contain a valid icc profile
public static String getIccDeviceClass(byte[] data)
data
- byte[] containing the icc profile
IOException
- if the source does not contain a valid icc profile
public static Integer getIccNumberOfComponents(byte[] data)
data
- byte[] containing the icc profile
public byte[] getData()
public int getNumComponents()
Copyright © 1998–2018 iText Group NV. All rights reserved.