to.etc.sjit
Class GifIndexedHandler
java.lang.Object
to.etc.sjit.GifHandlerBase
to.etc.sjit.GifIndexedHandler
public class GifIndexedHandler
- extends GifHandlerBase
Part of the Animated Gif Decoder, this class known about the 8-bit Java
BufferedImage formats that fit the GIF format best - the TYPE_BYTE_INDEXED
format.
- Author:
- Frits Jalvingh
Fields inherited from class to.etc.sjit.GifHandlerBase |
m_bi, m_gd, m_h, m_im, m_interlace_phase, m_out_e, m_out_o, m_type, m_w, m_x, m_y |
Method Summary |
protected void |
pixels(byte[] pix,
int len)
Called when a new set of pixels is available. |
protected java.awt.image.BufferedImage |
prepare()
Prepare decoding the current image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GifIndexedHandler
public GifIndexedHandler(AnimGifDecoder de,
GifImaMeta im,
int type)
prepare
protected java.awt.image.BufferedImage prepare()
throws java.io.IOException
- Prepare decoding the current image. Create a bufferedimage and create
the color table belonging to it from the global or local color table.
- Specified by:
prepare
in class GifHandlerBase
- Throws:
java.io.IOException
pixels
protected void pixels(byte[] pix,
int len)
throws java.io.IOException
- Description copied from class:
GifHandlerBase
- Called when a new set of pixels is available. This writes the pixels to
the appropriate position within the image.
- Specified by:
pixels
in class GifHandlerBase
- Throws:
java.io.IOException