81 |
*/ |
*/ |
82 |
private boolean needScaleInit; |
private boolean needScaleInit; |
83 |
|
|
84 |
|
/** |
85 |
|
* Constructs a new ICC_ColorSpace from an ICC_Profile object. |
86 |
|
* |
87 |
|
* @exception IllegalArgumentException If profile is inappropriate for |
88 |
|
* representing a ColorSpace. |
89 |
|
*/ |
90 |
public ICC_ColorSpace(ICC_Profile profile) |
public ICC_ColorSpace(ICC_Profile profile) |
91 |
{ |
{ |
92 |
super(CS_sRGB, profile.getNumComponents()); |
super(CS_sRGB, profile.getNumComponents()); |
98 |
return thisProfile; |
return thisProfile; |
99 |
} |
} |
100 |
|
|
101 |
|
/** |
102 |
|
* Transforms a color value assumed to be in this ColorSpace into a value in |
103 |
|
* the default CS_sRGB color space. |
104 |
|
* |
105 |
|
* @exception ArrayIndexOutOfBoundsException If array length is not at least |
106 |
|
* the number of components in this ColorSpace. |
107 |
|
*/ |
108 |
public float[] toRGB(float[] colorvalue) |
public float[] toRGB(float[] colorvalue) |
109 |
{ |
{ |
110 |
|
if (colorvalue.length < numComponents) |
111 |
|
throw new IllegalArgumentException (); |
112 |
|
|
113 |
// FIXME: Always assumes sRGB: |
// FIXME: Always assumes sRGB: |
114 |
return colorvalue; |
return colorvalue; |
115 |
} |
} |
116 |
|
|
117 |
|
/** |
118 |
|
* Transforms a color value assumed to be in the default CS_sRGB color space |
119 |
|
* into this ColorSpace. |
120 |
|
* |
121 |
|
* @exception ArrayIndexOutOfBoundsException If array length is not at |
122 |
|
* least 3. |
123 |
|
*/ |
124 |
public float[] fromRGB(float[] rgbvalue) |
public float[] fromRGB(float[] rgbvalue) |
125 |
{ |
{ |
126 |
|
if (rgbvalue.length < 3) |
127 |
|
throw new IllegalArgumentException (); |
128 |
|
|
129 |
// FIXME: Always assumes sRGB: |
// FIXME: Always assumes sRGB: |
130 |
return rgbvalue; |
return rgbvalue; |
131 |
} |
} |
132 |
|
|
133 |
|
/** |
134 |
|
* Transforms a color value assumed to be in this ColorSpace into the |
135 |
|
* CS_CIEXYZ conversion color space. |
136 |
|
* |
137 |
|
* @exception ArrayIndexOutOfBoundsException If array length is not at |
138 |
|
* least the number of components in this ColorSpace. |
139 |
|
*/ |
140 |
public float[] toCIEXYZ(float[] colorvalue) |
public float[] toCIEXYZ(float[] colorvalue) |
141 |
{ |
{ |
142 |
// FIXME: Not implemented |
// FIXME: Not implemented |