|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.tools.HSIConverter
public class HSIConverter
Class to convert values from HSI color space into other color spaces like RGB or so. H: color value. S: saturation of color. I: color intensity. Ranges of HSI: H in [0,360) (representing degrees), S and I in [0, 1] (representing [0, 100 %]).
Field Summary | |
---|---|
private double |
h
Hue of HIS space. |
private double |
i
Intensity of HIS space. |
private double |
s
Saturation of HIS space. |
Constructor Summary | |
---|---|
HSIConverter()
Standard constructor. |
|
HSIConverter(double h,
double s,
double i)
Constructor to create a HSIconverter object |
Method Summary | |
---|---|
int[] |
toRGB()
Method to convert a single color from HSI color space into RGB color space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double h
private double i
private double s
Constructor Detail |
---|
public HSIConverter()
public HSIConverter(double h, double s, double i)
h
- hue of HIS spaces
- saturation of HIS spacei
- intensity of HIS spaceMethod Detail |
---|
public int[] toRGB()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |