| GNU Classpath (0.95) | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjava.awt.color.ICC_ProfileField Summary | |
static int | |
static int | |
static int | |
static int | |
static int |
|
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
|
static int | |
static int |
|
static int | |
static int | |
static int |
|
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
|
static int | |
static int | |
static int |
|
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
|
static int | |
static int | |
static int | |
static int | |
static int | |
Method Summary | |
protected void |
|
int |
|
byte[] |
|
byte[] |
|
static ICC_Profile |
|
static ICC_Profile |
|
static ICC_Profile |
|
static ICC_Profile |
|
int |
|
int |
|
int |
|
int |
|
int |
|
protected Object |
|
void |
|
void |
|
void | |
Methods inherited from class java.lang.Object | |
clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait | |
public static final int icSigCalibrationDateTimeTag
- Field Value:
- 1667329140
public static final int icSigHead
Non-ICC tag 'head' for use in retrieving the header with getData()
- Field Value:
- 1751474532
public static final int icSigInputClass
ICC Profile class signatures
- Field Value:
- 1935896178
public static final int icSigProfileSequenceDescTag
- Field Value:
- 1886610801
public int getColorSpaceType()
Returns the color space of this profile, in terms of the color space constants defined in ColorSpace. (For example, it may be a ColorSpace.TYPE_RGB)
public byte[] getData()
Returns the data corresponding to this ICC_Profile as a byte array.
- Returns:
- The data in a byte array, where the first element corresponds to first byte of the profile file.
public byte[] getData(int tagSignature)
Returns the ICC profile tag data The non ICC-tag icSigHead is also permitted to request the header data.
- Parameters:
tagSignature- The ICC signature of the requested tag
- Returns:
- A byte array containing the tag data
public static ICC_Profile getInstance(byte[] data)
Returns an ICC_Profile instance from a byte array of profile data. An instance of the specialized classes ICC_ProfileRGB or ICC_ProfileGray may be returned if appropriate.
- Parameters:
data- - the profile data
- Returns:
- An ICC_Profile object
- Throws:
IllegalArgumentException- if the profile data is an invalid v2 profile.
public static ICC_Profile getInstance(int cspace)
Returns an predefined ICC_Profile instance. This will construct an ICC_Profile instance from one of the predefined color spaces in the ColorSpace class. (e.g. CS_sRGB, CS_GRAY, etc) An instance of the specialized classes ICC_ProfileRGB or ICC_ProfileGray may be returned if appropriate.
- Returns:
- An ICC_Profile object
public static ICC_Profile getInstance(InputStream in) throws IOException
Returns an ICC_Profile instance from an InputStream. This method can be used for reading ICC profiles embedded in files which support this. (JPEG and SVG for instance). The stream is treated in the following way: The profile header (128 bytes) is read first, and the header is validated. If the profile header is valid, it will then attempt to read the rest of the profile from the stream. The stream is not closed after reading. An instance of the specialized classes ICC_ProfileRGB or ICC_ProfileGray may be returned if appropriate.
- Parameters:
in- - the input stream to read the profile from.
- Returns:
- An ICC_Profile object
- Throws:
IllegalArgumentException- if the profile data is an invalid v2 profile.IOException- if the stream could not be read.
public static ICC_Profile getInstance(String filename) throws IOException
Returns an ICC_Profile instance from an ICC Profile file. An instance of the specialized classes ICC_ProfileRGB or ICC_ProfileGray may be returned if appropriate.
- Parameters:
filename- - the file name of the profile file.
- Returns:
- An ICC_Profile object
- Throws:
IllegalArgumentException- if the profile data is an invalid v2 profile.IOException- if the file could not be read.
public int getMinorVersion()
Returns the minor version number. Only the least-significant byte contains data, in BCD form: the least-significant nibble is the BCD bug fix revision, the most-significant nibble is the BCD minor revision number. (E.g. For a v2.1.0 profile this will return0x10)
public int getNumComponents()
Get the number of components in the profile's device color space.
public int getPCSType()
Returns the color space of this profile's Profile Connection Space (OCS) In terms of the color space constants defined in ColorSpace. This may be TYPE_XYZ or TYPE_Lab
public int getProfileClass()