iText 8.0.2 API
iText.IO.Colors.IccProfile Class Reference

Class used to represented the International Color Consortium profile More...

Public Member Functions

virtual byte[]  GetData ()
  Get the icc color profile data. More...
 
virtual int  GetNumComponents ()
  Get the number of color components in the profile. More...
 

Static Public Member Functions

static iText.IO.Colors.IccProfile  GetInstance (byte[] data, int numComponents)
  Construct an icc profile from the passed byte[], using the passed number of components. More...
 
static iText.IO.Colors.IccProfile  GetInstance (byte[] data)
  Construct an icc profile from the passed byte[], using the passed number of components. More...
 
static iText.IO.Colors.IccProfile  GetInstance (RandomAccessFileOrArray file)
  Construct an icc profile from the passed random-access file or array. More...
 
static iText.IO.Colors.IccProfile  GetInstance (Stream stream)
  Construct an icc profile from the passed InputStream. More...
 
static iText.IO.Colors.IccProfile  GetInstance (String filename)
  Construct an icc profile from the file found at the passed path More...
 
static String  GetIccColorSpaceName (byte[] data)
  Get the Color space name of the icc profile found in the data. More...
 
static String  GetIccDeviceClass (byte[] data)
  Get the device class of the icc profile found in the data. More...
 
static ? int  GetIccNumberOfComponents (byte[] data)
  Get the number of color components of the icc profile found in the data. More...
 

Detailed Description

Class used to represented the International Color Consortium profile

Member Function Documentation

◆ GetData()

virtual byte [] iText.IO.Colors.IccProfile.GetData ( )
inlinevirtual

Get the icc color profile data.

Returns
byte[] containing the data

◆ GetIccColorSpaceName()

static String iText.IO.Colors.IccProfile.GetIccColorSpaceName ( byte[]  data )
inlinestatic

Get the Color space name of the icc profile found in the data.

Parameters
data byte[] containing the icc profile
Returns
String containing the color space of the profile

◆ GetIccDeviceClass()

static String iText.IO.Colors.IccProfile.GetIccDeviceClass ( byte[]  data )
inlinestatic

Get the device class of the icc profile found in the data.

Parameters
data byte[] containing the icc profile
Returns
String containing the device class of the profile

◆ GetIccNumberOfComponents()

static ? int iText.IO.Colors.IccProfile.GetIccNumberOfComponents ( byte[]  data )
inlinestatic

Get the number of color components of the icc profile found in the data.

Parameters
data byte[] containing the icc profile
Returns
Number of color components

◆ GetInstance() [1/5]

static iText.IO.Colors.IccProfile iText.IO.Colors.IccProfile.GetInstance ( byte[]  data )
inlinestatic

Construct an icc profile from the passed byte[], using the passed number of components.

Parameters
data byte[] containing the raw icc profile data
Returns
IccProfile constructed from the data

◆ GetInstance() [2/5]

static iText.IO.Colors.IccProfile iText.IO.Colors.IccProfile.GetInstance ( byte[]  data,
int  numComponents 
)
inlinestatic

Construct an icc profile from the passed byte[], using the passed number of components.

Parameters
data byte[] containing the raw icc profile data
numComponents number of components the profile contains
Returns
IccProfile constructed from the data

◆ GetInstance() [3/5]

static iText.IO.Colors.IccProfile iText.IO.Colors.IccProfile.GetInstance ( RandomAccessFileOrArray  file )
inlinestatic

Construct an icc profile from the passed random-access file or array.

Parameters
file random-access file or array containing the profile
Returns
IccProfile constructed from the data

◆ GetInstance() [4/5]

static iText.IO.Colors.IccProfile iText.IO.Colors.IccProfile.GetInstance ( Stream  stream )
inlinestatic

Construct an icc profile from the passed InputStream.

Parameters
stream inputstream containing the profile
Returns
IccProfile constructed from the data

◆ GetInstance() [5/5]

static iText.IO.Colors.IccProfile iText.IO.Colors.IccProfile.GetInstance ( String  filename )
inlinestatic

Construct an icc profile from the file found at the passed path

Parameters
filename path to the file contaning the profile
Returns
IccProfile constructed from the data

◆ GetNumComponents()

virtual int iText.IO.Colors.IccProfile.GetNumComponents ( )
inlinevirtual

Get the number of color components in the profile.

Returns
number of components