Fixed exceptions and color selection
This commit is contained in:
parent
54a9fcedf8
commit
8a5267b0f8
6 changed files with 1974 additions and 11 deletions
|
|
@ -24,9 +24,7 @@ package se.hal.struct.devicedata;
|
|||
|
||||
import se.hal.intf.HalEventData;
|
||||
import zutil.ColorUtil;
|
||||
import zutil.converter.Converter;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.color.ColorSpace;
|
||||
|
||||
/**
|
||||
|
|
@ -96,10 +94,6 @@ public class ColorEventData extends HalEventData {
|
|||
return ColorUtil.getLightness(red, green, blue);
|
||||
}
|
||||
|
||||
public float[] getCieXYZ() {
|
||||
return cieXYZ.fromRGB(new float[]{red, green, blue});
|
||||
}
|
||||
|
||||
public String getHex() {
|
||||
return ColorUtil.getHexString(red, green, blue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue