com.icons
Class JspmGifEncoder

java.lang.Object
com.icons.JspmImageEncoder
com.icons.JspmGifEncoder
- All Implemented Interfaces:
- java.awt.image.ImageConsumer
- public class JspmGifEncoder
- extends JspmImageEncoder
Write out a graphic in GIF format.
- Version:
- 1.0.5
|
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()
Subclasses implement this to finish an encoding. |
(package private) void |
encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
Subclasses implement this to actually write out some bits. |
(package private) void |
encodeStart(int width,
int height)
Subclasses implement this to initialize an encoding. |
(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 |
interlace
private boolean interlace
width
int width
height
int height
rgbPixels
int[][] rgbPixels
colorHash
JspmIntHashtable 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
- 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
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
JspmGifEncoder
public JspmGifEncoder(java.awt.Image img,
java.io.OutputStream out)
throws java.io.IOException
JspmGifEncoder
public JspmGifEncoder(java.awt.Image img,
java.io.OutputStream out,
boolean interlace)
throws java.io.IOException
JspmGifEncoder
public JspmGifEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out)
throws java.io.IOException
JspmGifEncoder
public JspmGifEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out,
boolean interlace)
throws java.io.IOException
encodeStart
void encodeStart(int width,
int height)
throws java.io.IOException
- Description copied from class:
JspmImageEncoder
- Subclasses implement this to initialize an encoding.
- Specified by:
encodeStart in class JspmImageEncoder
encodePixels
void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws java.io.IOException
- Description copied from class:
JspmImageEncoder
- Subclasses implement this to actually write out some bits. They
are guaranteed to be delivered in top-down-left-right order.
One int per pixel, index is row * scansize + off + col,
RGBdefault (AARRGGBB) color model.
- Specified by:
encodePixels in class JspmImageEncoder
encodeDone
void encodeDone()
throws java.io.IOException
- Description copied from class:
JspmImageEncoder
- Subclasses implement this to finish an encoding.
- Specified by:
encodeDone in class JspmImageEncoder
GetPixel
byte GetPixel(int x,
int y)
throws java.io.IOException
writeString
static void writeString(java.io.OutputStream out,
java.lang.String str)
throws java.io.IOException
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
BumpPixel
void BumpPixel()
GIFNextPixel
int GIFNextPixel()
throws java.io.IOException
Putword
void Putword(int w,
java.io.OutputStream outs)
throws java.io.IOException
Putbyte
void Putbyte(byte b,
java.io.OutputStream outs)
throws java.io.IOException
MAXCODE
final int MAXCODE(int n_bits)
compress
void compress(int init_bits,
java.io.OutputStream outs)
throws java.io.IOException
output
void output(int code,
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)
char_init
void char_init()
char_out
void char_out(byte c,
java.io.OutputStream outs)
throws java.io.IOException
flush_char
void flush_char(java.io.OutputStream outs)
throws java.io.IOException