Class YIQCoord
java.lang.Object
|
+----YIQCoord
- public class YIQCoord
- extends Object
This class produces the YIQ coordinates container and
implements RGB-YIQ converter.
- See Also:
- RGBCoord
-
i
- the I coordinate.
-
q
- the Q coordinate.
-
y
- the Y coordinate.
-
YIQCoord(RGBCoord)
- Constructor from RGB space
-
convertFromRGB(RGBCoord)
- Converts RGB -> YIQ.
-
convertToRGB(RGBCoord)
- Convert YIQ -> RGB.
-
toString()
- Converts YIQ coordinates to string.
y
public float y
- the Y coordinate.
i
public float i
- the I coordinate.
q
public float q
- the Q coordinate.
YIQCoord
public YIQCoord(RGBCoord rgb)
- Constructor from RGB space
convertFromRGB
public final void convertFromRGB(RGBCoord rgb)
- Converts RGB -> YIQ.
- Parameters:
- rgb - RGB space coordinates.
convertToRGB
public final void convertToRGB(RGBCoord rgb)
- Convert YIQ -> RGB.
- Parameters:
- rgb - RGB space coordinates.
toString
public String toString()
- Converts YIQ coordinates to string.
- Overrides:
- toString in class Object