|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectj2d.animation.GifUtils
public class GifUtils
Created by User: lyon Date: May 4, 2003 Time: 11:35:37 AM
Constructor Summary | |
---|---|
GifUtils()
|
Method Summary | |
---|---|
static java.awt.Image[] |
getGifs()
Get a gif animation as an array of image. |
static void |
writeGif(java.awt.Image[] imgs,
int speed)
save imgs out to a gif animation file
Does this work? I think it might be buggy. |
static void |
writeGif(java.awt.Image[] still_images,
java.lang.String annotation,
boolean looped,
double frames_per_second,
java.io.OutputStream os)
Save still_images to a gif animation file. |
static void |
writeGif(java.awt.Image img,
java.lang.String fn)
Saves a 256 color image to a file. |
static void |
writeGifs(java.awt.Image sourceImage,
ImageProcessorFactory ipf,
int numberOfImages,
int speed)
Create a gif animation from an ImageProcessorFactory |
static void |
writeGifStills(java.awt.Image[] imgs)
Save imgs into a directory, one image per file. |
static void |
writeGifStills(java.awt.Image[] imgs,
java.io.File fileName)
Save imgs array into a directory, fn, using GIF form, one image per file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GifUtils()
Method Detail |
---|
public static void writeGif(java.awt.Image[] still_images, java.lang.String annotation, boolean looped, double frames_per_second, java.io.OutputStream os) throws java.io.IOException
still_images
- images to be writtenannotation
- text to be embedded into the gif animationlooped
- true means looped on playbackframes_per_second
- an intos
- OutputStream to send animation to.
java.io.IOException
- If you run out of disk spacepublic static void writeGifStills(java.awt.Image[] imgs)
imgs
- a sequence of images to be writtenpublic static void writeGifStills(java.awt.Image[] imgs, java.io.File fileName)
imgs
- array of images to be savedfileName
- to be used as the root for the output filespublic static void writeGif(java.awt.Image img, java.lang.String fn)
img
- An image to be savedfn
- a string containing the filepublic static void writeGif(java.awt.Image[] imgs, int speed)
imgs
out to a gif animation file
Does this work? I think it might be buggy.
imgs
- array of 256 color imagesspeed
- speed, in fps, to display gif animationpublic static void writeGifs(java.awt.Image sourceImage, ImageProcessorFactory ipf, int numberOfImages, int speed)
ImageProcessorFactory
sourceImage
- the input imageipf
- the image processor factory instancepublic static java.awt.Image[] getGifs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |