|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.util.image.JpegProducer
Utility class for creating JPEG encoded images.
Copyright: Copyright (c) 2003
Company: dmonix.org
| Constructor Summary | |
JpegProducer()
|
|
| Method Summary | |
java.awt.image.BufferedImage |
createImage(ImageObject imageObject)
Creates a buffered image out of an image object. |
static void |
encodeImage(java.awt.image.BufferedImage bi,
java.io.File file)
Encodes the buffered image to any given file. |
static void |
encodeImage(java.awt.image.BufferedImage bi,
java.io.OutputStream stream)
Encodes the buffered image to any given output stream. |
void |
encodeImage(ImageObject imageObject,
java.io.OutputStream stream)
Encodes the image object to any given output stream. |
java.awt.image.BufferedImage |
getBufferedImage()
Returns the current buffered image. |
java.awt.image.BufferedImage |
getImage()
Deprecated. |
void |
setBackground(java.awt.Color bgColor)
Set the background color. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JpegProducer()
| Method Detail |
public void setBackground(java.awt.Color bgColor)
bgColor - The background color
public static void encodeImage(java.awt.image.BufferedImage bi,
java.io.OutputStream stream)
throws java.io.IOException
bi - The buffered imagestream - The stream to write the image to
java.io.IOException
public static void encodeImage(java.awt.image.BufferedImage bi,
java.io.File file)
throws java.io.IOException
bi - The buffered imagefile - The file to write the image to
java.io.IOException
public void encodeImage(ImageObject imageObject,
java.io.OutputStream stream)
throws java.io.IOException
imageObject - The object used to render an imagestream - The output stream
java.io.IOExceptionpublic java.awt.image.BufferedImage getBufferedImage()
public java.awt.image.BufferedImage getImage()
public java.awt.image.BufferedImage createImage(ImageObject imageObject)
throws java.io.IOException
imageObject - The image object
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||