|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.j2se.RgbImageJ2se
public class RgbImageJ2se
RgbImageJ2se is the interface between jjil's RgbImage and java.awt.Image
objects. It provides an implementation of the Show interface for use
with the Debug object, which allows images to be displayed and sent
to files without being aware of the underlying architecture.
It also provides methods for transforming java.awt.Image
objects to and from jjil.core.RgbImage objects.
Constructor Summary | |
---|---|
RgbImageJ2se()
Creates an instance of RgbImageJ2se which will use the common graphics object for image display. |
|
RgbImageJ2se(java.awt.Graphics graphics)
Creates a new instance of RgbImageJ2se. |
Method Summary | |
---|---|
void |
toDisplay(RgbImage rgb)
Sends an RgbImage to the current graphics object. |
void |
toFile(RgbImage rgb,
java.lang.String szFile)
Sends an RgbImage to a file. |
static RgbImage |
toRgbImage(java.awt.Image im)
Transforms an input java.awt.Image to a jjil.core.RgbImage. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RgbImageJ2se(java.awt.Graphics graphics)
graphics
- the graphics object to use for all image displays.public RgbImageJ2se()
Method Detail |
---|
public void toDisplay(RgbImage rgb)
toDisplay
in interface Show
rgb
- the image to display.public void toFile(RgbImage rgb, java.lang.String szFile)
toFile
in interface Show
rgb
- the RgbImage to send to the file.szFile
- the path of the file to save the image in. The
file suffix is used to determine the image type (JPEG or PNG).
Storage is in JPEG by default.public static RgbImage toRgbImage(java.awt.Image im)
im
- the input java.awt.Image object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |