Facemorph
Class ImageToJpeg

java.lang.Object
  extended by Facemorph.ImageToJpeg

public class ImageToJpeg
extends java.lang.Object

Utility method for constructing JPEG image files


Constructor Summary
ImageToJpeg()
           
 
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
 

Constructor Detail

ImageToJpeg

public ImageToJpeg()
Method Detail

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 output
out - 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 write
out - The OutputStream to write to
width - The width of the image
height - The height of the image