All Packages Class Hierarchy This Package Previous Next Index
Class picture.GifEncoder
java.lang.Object
|
+----picture.ImageEncoder
|
+----picture.GifEncoder
- public class GifEncoder
- extends ImageEncoder
Write out an image as a GIF.
Fetch the software.
Fetch the entire Acme package.
- See Also:
- ToGif
-
a_count
-
-
accum
-
-
BITS
-
-
clear_flg
-
-
ClearCode
-
-
codetab
-
-
colorHash
-
-
CountDown
-
-
cur_accum
-
-
cur_bits
-
-
curx
-
-
cury
-
-
EOF
-
-
EOFCode
-
-
free_ent
-
-
g_init_bits
-
-
Height
-
-
height
-
-
hsize
-
-
HSIZE
-
-
htab
-
-
Interlace
-
-
interlace
-
-
masks
-
-
maxbits
-
-
maxcode
-
-
maxmaxcode
-
-
n_bits
-
-
Pass
-
-
rgbPixels
-
-
width
-
-
Width
-
-
GifEncoder(Image, OutputStream)
- Constructor from Image.
-
GifEncoder(Image, OutputStream, boolean)
- Constructor from Image with interlace setting.
-
GifEncoder(ImageProducer, OutputStream)
- Constructor from ImageProducer.
-
GifEncoder(ImageProducer, OutputStream, boolean)
- Constructor from ImageProducer with interlace setting.
-
BumpPixel()
-
-
char_init()
-
-
char_out(byte, OutputStream)
-
-
cl_block(OutputStream)
-
-
cl_hash(int)
-
-
compress(int, OutputStream)
-
-
encodeDone()
- Subclasses implement this to finish an encoding.
-
encodePixels(int, int, int, int, int[], int, int)
- Subclasses implement this to actually write out some bits.
-
encodeStart(int, int)
- Subclasses implement this to initialize an encoding.
-
flush_char(OutputStream)
-
-
GetPixel(int, int)
-
-
GIFEncode(OutputStream, int, int, boolean, byte, int, int, byte[], byte[], byte[])
-
-
GIFNextPixel()
-
-
MAXCODE(int)
-
-
output(int, OutputStream)
-
-
Putbyte(byte, OutputStream)
-
-
Putword(int, OutputStream)
-
-
writeString(OutputStream, String)
-
interlace
private boolean interlace
width
int width
height
int height
rgbPixels
int rgbPixels[][]
colorHash
IntHashtable colorHash
Width
int Width
Height
int Height
Interlace
boolean Interlace
curx
int curx
cury
int cury
CountDown
int CountDown
Pass
int Pass
EOF
static final int EOF
BITS
static final int BITS
HSIZE
static final int HSIZE
n_bits
int n_bits
maxbits
int maxbits
maxcode
int maxcode
maxmaxcode
int maxmaxcode
htab
int htab[]
codetab
int codetab[]
hsize
int hsize
free_ent
int free_ent
clear_flg
boolean clear_flg
g_init_bits
int g_init_bits
ClearCode
int ClearCode
EOFCode
int EOFCode
cur_accum
int cur_accum
cur_bits
int cur_bits
masks
int masks[]
a_count
int a_count
accum
byte accum[]
GifEncoder
public GifEncoder(Image img,
OutputStream out) throws IOException
- Constructor from Image.
- Parameters:
- img - The image to encode.
- out - The stream to write the GIF to.
GifEncoder
public GifEncoder(Image img,
OutputStream out,
boolean interlace) throws IOException
- Constructor from Image with interlace setting.
- Parameters:
- img - The image to encode.
- out - The stream to write the GIF to.
- interlace - Whether to interlace.
GifEncoder
public GifEncoder(ImageProducer prod,
OutputStream out) throws IOException
- Constructor from ImageProducer.
- Parameters:
- prod - The ImageProducer to encode.
- out - The stream to write the GIF to.
GifEncoder
public GifEncoder(ImageProducer prod,
OutputStream out,
boolean interlace) throws IOException
- Constructor from ImageProducer with interlace setting.
- Parameters:
- prod - The ImageProducer to encode.
- out - The stream to write the GIF to.
encodeStart
void encodeStart(int width,
int height) throws IOException
- Subclasses implement this to initialize an encoding.
- Overrides:
- encodeStart in class ImageEncoder
encodePixels
void encodePixels(int x,
int y,
int w,
int h,
int rgbPixels[],
int off,
int scansize) throws IOException
- Subclasses implement this to actually write out some bits.
- Overrides:
- encodePixels in class ImageEncoder
encodeDone
void encodeDone() throws IOException
- Subclasses implement this to finish an encoding.
- Overrides:
- encodeDone in class ImageEncoder
GetPixel
byte GetPixel(int x,
int y) throws IOException
writeString
static void writeString(OutputStream out,
String str) throws IOException
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
BumpPixel
void BumpPixel()
GIFNextPixel
int GIFNextPixel() throws IOException
Putword
void Putword(int w,
OutputStream outs) throws IOException
Putbyte
void Putbyte(byte b,
OutputStream outs) throws IOException
MAXCODE
final int MAXCODE(int n_bits)
compress
void compress(int init_bits,
OutputStream outs) throws IOException
output
void output(int code,
OutputStream outs) throws IOException
cl_block
void cl_block(OutputStream outs) throws IOException
cl_hash
void cl_hash(int hsize)
char_init
void char_init()
char_out
void char_out(byte c,
OutputStream outs) throws IOException
flush_char
void flush_char(OutputStream outs) throws IOException
All Packages Class Hierarchy This Package Previous Next Index