|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.image.AcmeGifHelper
public class AcmeGifHelper
This class provides some utility methods for creating gif encoded images, using the Acme code available at http://www.acme.com/java/ A copy has been included in the contrib directory.
| Method Summary | |
|---|---|
static byte[] |
encodeGif(java.awt.image.BufferedImage image)
Return a byte array that contains the GIF encoded image. |
static byte[] |
encodeGif(int w,
int h,
int[] pixels)
Return a byte array that contains the GIF encoded image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] encodeGif(java.awt.image.BufferedImage image)
throws java.io.IOException
image - the image to encode
java.io.IOException - an error occurred in encoding the image
public static byte[] encodeGif(int w,
int h,
int[] pixels)
throws java.io.IOException
w - the width of the imageh - the height of the imagepixels - the array of pixels in RGB directcolor
java.io.IOException - an error occurred in encoding the image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||