|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.util.graphics.GraphicsConverter
public class GraphicsConverter
The GraphicsConverter class provides static methods that allow conversion between colors and images stored as RGB objects and those stored as AWT colors.
| Field Summary | |
|---|---|
static int |
image32Bit
|
static int |
image8Bit
|
| Constructor Summary | |
|---|---|
GraphicsConverter()
|
|
| Method Summary | |
|---|---|
static Color |
convertToAWTColor(RGB color)
Converts the specified RGB object to an AWT Color object. |
static Image |
convertToAWTImage(RGB[][] image)
Converts the specified array of RGB objects to an AWT Image object. |
static RGB |
convertToRGB(Color color)
Converts the specified AWT Color object to an RGB object. |
static RGB[][] |
convertToRGBArray(BufferedImage bufferedImage)
|
static RGB[][] |
convertToRGBArray(BufferedImage bufferedImage,
int xoff,
int yoff,
int w,
int h)
|
static RGB[][] |
convertToRGBArray(Image image)
Converts the specified AWT Image object to an array of RGB objects. |
static RGB[][] |
convertToRGBArray(int[] pixel,
int off,
int x,
int y,
int w,
int h,
int imageW)
|
static int[] |
extract32BitImage(RenderedImage im)
|
static byte[] |
extract8BitImage(RenderedImage im)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int image32Bit
public static final int image8Bit
| Constructor Detail |
|---|
public GraphicsConverter()
| Method Detail |
|---|
public static RGB convertToRGB(Color color)
public static Color convertToAWTColor(RGB color)
public static RGB[][] convertToRGBArray(Image image)
public static int[] extract32BitImage(RenderedImage im)
public static byte[] extract8BitImage(RenderedImage im)
public static RGB[][] convertToRGBArray(BufferedImage bufferedImage)
public static RGB[][] convertToRGBArray(int[] pixel,
int off,
int x,
int y,
int w,
int h,
int imageW)
public static RGB[][] convertToRGBArray(BufferedImage bufferedImage,
int xoff,
int yoff,
int w,
int h)
public static Image convertToAWTImage(RGB[][] image)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||