mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8180877: More deeply colored ICC spaces
Reviewed-by: serb, rhalade, mschoene
This commit is contained in:
parent
03e33188f3
commit
933e26ad58
2 changed files with 18 additions and 1 deletions
|
@ -127,6 +127,18 @@ public class ICC_ColorSpace extends ColorSpace {
|
|||
setMinMax();
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate an ICC_ColorSpace read from an object input stream
|
||||
*/
|
||||
private void readObject(java.io.ObjectInputStream s)
|
||||
throws ClassNotFoundException, java.io.IOException {
|
||||
|
||||
s.defaultReadObject();
|
||||
if (thisProfile == null) {
|
||||
thisProfile = ICC_Profile.getInstance(ColorSpace.CS_sRGB);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ICC_Profile for this ICC_ColorSpace.
|
||||
* @return the ICC_Profile for this ICC_ColorSpace.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue