Facemorph
Class ImageToJpeg
java.lang.Object
Facemorph.ImageToJpeg
public class ImageToJpeg
- extends java.lang.Object
Utility method for constructing JPEG image files
Method Summary |
static void |
writeJpeg(java.awt.Image img,
java.io.OutputStream out,
java.awt.image.ImageObserver ob)
Writes the Image to a jpeg file |
static void |
writeJpeg(java.awt.Image img,
java.io.OutputStream out,
int width,
int height)
Writes the image to a Jpeg file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageToJpeg
public ImageToJpeg()
writeJpeg
public static void writeJpeg(java.awt.Image img,
java.io.OutputStream out,
java.awt.image.ImageObserver ob)
- Writes the Image to a jpeg file
- Parameters:
img
- The Image to outputout
- The OutputStream to write to.ob
- ImageObserver to help find the dimensions of img
writeJpeg
public static void writeJpeg(java.awt.Image img,
java.io.OutputStream out,
int width,
int height)
- Writes the image to a Jpeg file
- Parameters:
img
- The input image to writeout
- The OutputStream to write towidth
- The width of the imageheight
- The height of the image