privatestaticfinal Map<Integer, String[]> colorSpaces = new HashMap<>(5);
static {
colorSpaces.put(ColorSpace.CS_CIEXYZ, new String[] {"X", "Y", "Z"});
colorSpaces.put(ColorSpace.CS_sRGB, new String[] {"Red", "Green", "Blue"});
colorSpaces.put(ColorSpace.CS_LINEAR_RGB, new String[] {"Red", "Green", "Blue"});
colorSpaces.put(ColorSpace.CS_GRAY, new String[] {"Gray"});
colorSpaces.put(ColorSpace.CS_PYCC, new String[] {"Unnamed color component(0)", "Unnamed color component(1)", "Unnamed color component(2)"});
};
publicstaticvoid main(String[] args) { for (int csType : colorSpaces.keySet()) {
ColorSpace cs = ColorSpace.getInstance(csType);
String[] names = colorSpaces.get(csType); for (int i = 0; i < cs.getNumComponents(); i++) {
String name = cs.getName(i); if (!name.equals(names[i])) {
System.err.println("ColorSpace with type=" + cs.getType() + " has wrong name of " + i + " component"); thrownew RuntimeException("Wrong name of the component");
}
}
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.7 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.