java.lang.Object
Acme.JPM.Encoders.ImageEncoder
Acme.JPM.Encoders.GifEncoder
- All Implemented Interfaces:
- java.awt.image.ImageConsumer
- public class GifEncoder
- extends ImageEncoder
Write out an image as a GIF.
Fetch the software.
Fetch the entire Acme package.
|
Method Summary |
(package private) void |
BumpPixel()
|
(package private) void |
char_init()
|
(package private) void |
char_out(byte c,
java.io.OutputStream outs)
|
(package private) void |
cl_block(java.io.OutputStream outs)
|
(package private) void |
cl_hash(int hsize)
|
(package private) void |
compress(int init_bits,
java.io.OutputStream outs)
|
(package private) void |
encodeDone()
|
(package private) void |
encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
|
(package private) void |
encodeStart(int width,
int height)
|
(package private) void |
flush_char(java.io.OutputStream outs)
|
(package private) byte |
GetPixel(int x,
int y)
|
(package private) void |
GIFEncode(java.io.OutputStream outs,
int Width,
int Height,
boolean Interlace,
byte Background,
int Transparent,
int BitsPerPixel,
byte[] Red,
byte[] Green,
byte[] Blue)
|
(package private) int |
GIFNextPixel()
|
(package private) int |
MAXCODE(int n_bits)
|
(package private) void |
output(int code,
java.io.OutputStream outs)
|
(package private) void |
Putbyte(byte b,
java.io.OutputStream outs)
|
(package private) void |
Putword(int w,
java.io.OutputStream outs)
|
(package private) static void |
writeString(java.io.OutputStream out,
java.lang.String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOF
static final int EOF
- See Also:
- Constant Field Values
BITS
static final int BITS
- See Also:
- Constant Field Values
HSIZE
static final int HSIZE
- See Also:
- Constant Field Values
colorHash
Acme.IntHashtable colorHash
accum
byte[] accum
codetab
int[] codetab
htab
int[] htab
masks
int[] masks
rgbPixels
int[][] rgbPixels
Interlace
boolean Interlace
clear_flg
boolean clear_flg
ClearCode
int ClearCode
CountDown
int CountDown
EOFCode
int EOFCode
Height
int Height
Pass
int Pass
Width
int Width
a_count
int a_count
cur_accum
int cur_accum
cur_bits
int cur_bits
curx
int curx
cury
int cury
free_ent
int free_ent
g_init_bits
int g_init_bits
height
int height
hsize
int hsize
maxbits
int maxbits
maxcode
int maxcode
maxmaxcode
int maxmaxcode
n_bits
int n_bits
width
int width
interlace
private boolean interlace
GifEncoder
public GifEncoder(java.awt.Image img,
java.io.OutputStream out)
throws java.io.IOException
GifEncoder
public GifEncoder(java.awt.Image img,
java.io.OutputStream out,
boolean interlace)
throws java.io.IOException
GifEncoder
public GifEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out)
throws java.io.IOException
GifEncoder
public GifEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out,
boolean interlace)
throws java.io.IOException
GetPixel
byte GetPixel(int x,
int y)
throws java.io.IOException
MAXCODE
final int MAXCODE(int n_bits)
Putbyte
void Putbyte(byte b,
java.io.OutputStream outs)
throws java.io.IOException
char_init
void char_init()
char_out
void char_out(byte c,
java.io.OutputStream outs)
throws java.io.IOException
cl_block
void cl_block(java.io.OutputStream outs)
throws java.io.IOException
cl_hash
void cl_hash(int hsize)
compress
void compress(int init_bits,
java.io.OutputStream outs)
throws java.io.IOException
encodeDone
void encodeDone()
throws java.io.IOException
- Specified by:
encodeDone in class ImageEncoder
encodePixels
void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws java.io.IOException
- Specified by:
encodePixels in class ImageEncoder
encodeStart
void encodeStart(int width,
int height)
throws java.io.IOException
- Specified by:
encodeStart in class ImageEncoder
writeString
static void writeString(java.io.OutputStream out,
java.lang.String str)
throws java.io.IOException
BumpPixel
void BumpPixel()
GIFEncode
void GIFEncode(java.io.OutputStream outs,
int Width,
int Height,
boolean Interlace,
byte Background,
int Transparent,
int BitsPerPixel,
byte[] Red,
byte[] Green,
byte[] Blue)
throws java.io.IOException
GIFNextPixel
int GIFNextPixel()
throws java.io.IOException
Putword
void Putword(int w,
java.io.OutputStream outs)
throws java.io.IOException
flush_char
void flush_char(java.io.OutputStream outs)
throws java.io.IOException
output
void output(int code,
java.io.OutputStream outs)
throws java.io.IOException