|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.graphics.GraphicsConverter
The GraphicsConverter class provides static methods that allow conversion between colors and images stored as RGB objects and those stored as AWT colors.
| Constructor Summary | |
GraphicsConverter()
|
|
| Method Summary | |
static java.awt.Color |
convertToAWTColor(RGB color)
Converts the specified RGB object to an AWT Color object. |
static java.awt.Image |
convertToAWTImage(RGB[][] image)
Converts the specified array of RGB objects to an AWT Image object. |
static RGB |
convertToRGB(java.awt.Color color)
Converts the specified AWT Color object to an RGB object. |
static RGB[][] |
convertToRGBArray(java.awt.Image image)
Converts the specified AWT Image object to an array of RGB objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphicsConverter()
| Method Detail |
public static RGB convertToRGB(java.awt.Color color)
public static java.awt.Color convertToAWTColor(RGB color)
public static RGB[][] convertToRGBArray(java.awt.Image image)
public static java.awt.Image convertToAWTImage(RGB[][] image)
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||