Purple Code

com.purpletech.awt
Class ImageUtils

java.lang.Object
  |
  +--com.purpletech.awt.ImageUtils

public class ImageUtils
extends java.lang.Object

routines for writing an Image to disk and so forth


Constructor Summary
ImageUtils()
           
 
Method Summary
static java.awt.Frame getFrame()
           
static java.awt.Toolkit getToolkit()
          Get a default toolkit.
static java.awt.Image loadImage(java.lang.String file)
           
static void writeGif(java.awt.Image img, java.io.File file)
          Write an Image to disk as a GIF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtils

public ImageUtils()
Method Detail

writeGif

public static void writeGif(java.awt.Image img,
                            java.io.File file)
                     throws java.io.IOException
Write an Image to disk as a GIF.

java.io.IOException

getFrame

public static java.awt.Frame getFrame()

getToolkit

public static java.awt.Toolkit getToolkit()
Get a default toolkit. Uses a dummy frame, so we can use this toolkit to make a valid offscreen buffer. Note that this buffer will only be as deep, pixel-wise, as the current screen resolution.


loadImage

public static java.awt.Image loadImage(java.lang.String file)
                                throws java.io.IOException
java.io.IOException

Documentation generated March 5 2003