| java.lang.Object com.salmonllc.util.GifEncoder
GifEncoder | public class GifEncoder implements ImageConsumer(Code) | | Class for writing out an image as a gif.
|
Inner Class :class gifHashitem | |
Inner Class :class IntHashtableEntry | |
Inner Class :class IntHashtableEnumerator implements Enumeration | |
Method Summary | |
void | BumpPixel() | void | GIFEncode(OutputStream outs, int Width, int Height, boolean Interlace, byte Background, int Transparent, int BitsPerPixel, byte[] Red, byte[] Green, byte[] Blue) | int | GIFNextPixel() | byte | GetPixel(int x, int y) | final int | MAXCODE(int n_bits) | void | Putbyte(byte b, OutputStream outs) | void | Putword(int w, OutputStream outs) | void | char_init() | void | char_out(byte c, OutputStream outs) | void | cl_block(OutputStream outs) | void | cl_hash(int hsize) | void | compress(int init_bits, OutputStream outs) | public synchronized void | encode() | void | encodeDone() | void | encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize) | void | encodeStart(int width, int height) | void | flush_char(OutputStream outs) | public void | imageComplete(int status) | void | output(int code, OutputStream outs) | public void | setColorModel(ColorModel model) | public void | setDimensions(int width, int height) | public void | setHints(int hintflags) | public void | setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) | public void | setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) | public void | setProperties(Hashtable props) | static void | writeString(OutputStream out, String str) |
BITS | final static int BITS(Code) | | |
HSIZE | final static int HSIZE(Code) | | |
Interlace | boolean Interlace(Code) | | |
WidthHeight | int WidthHeight(Code) | | |
clear_flg | boolean clear_flg(Code) | | |
colorHash | IntHashtable colorHash(Code) | | |
g_init_bits | int g_init_bits(Code) | | |
maxmaxcode | int maxmaxcode(Code) | | |
rgbPixels | int[][] rgbPixels(Code) | | |
GifEncoder | public GifEncoder(Image img, OutputStream out) throws IOException(Code) | | Constructor
Parameters: img - The image to encode. Parameters: out - The stream to write the bytes to. |
GifEncoder | public GifEncoder(Image img, OutputStream out, boolean interlace) throws IOException(Code) | | Constructor from Image with interlace setting.
Parameters: img - The image to encode. Parameters: out - The stream to write the GIF to. Parameters: interlace - Whether to interlace. |
GifEncoder | public GifEncoder(Image img, OutputStream out, boolean interlace, Color transparentColor) throws IOException(Code) | | Constructor from Image with interlace setting.
Parameters: img - The image to encode. Parameters: out - The stream to write the GIF to. Parameters: interlace - Whether to interlace. Parameters: transparentColor - The color to use for transparency |
BumpPixel | void BumpPixel()(Code) | | |
GIFEncode | void GIFEncode(OutputStream outs, int Width, int Height, boolean Interlace, byte Background, int Transparent, int BitsPerPixel, byte[] Red, byte[] Green, byte[] Blue) throws IOException(Code) | | |
MAXCODE | final int MAXCODE(int n_bits)(Code) | | |
char_init | void char_init()(Code) | | |
cl_hash | void cl_hash(int hsize)(Code) | | |
encode | public synchronized void encode() throws IOException(Code) | | Call this method after initialization to do the encoding
|
encodePixels | void encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize) throws IOException(Code) | | |
imageComplete | public void imageComplete(int status)(Code) | | |
setDimensions | public void setDimensions(int width, int height)(Code) | | |
setHints | public void setHints(int hintflags)(Code) | | |
setPixels | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)(Code) | | |
setPixels | public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)(Code) | | |
|
|