Method | Description | |
---|---|---|
GetDelay ( int index ) : int |
Gets display duration for specified frame.
|
|
GetFrame ( int n ) : Image |
Gets the image contents of frame n.
|
|
GetFrameCount ( ) : int |
Gets the number of frames read from file.
|
|
GetFrameSize ( ) : |
Gets image size.
|
|
GetImage ( ) : Image |
Gets the first (or only) image read.
|
|
GetLoopCount ( ) : int |
Gets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitiely.
|
|
Read ( Stream inStream ) : int |
Reads GIF image from stream.
|
|
Read ( String name ) : int |
Reads GIF file from specified file/URL source (URL assumed if name contains ":/" or "file:")
|
Method | Description | |
---|---|---|
DecodeImageData ( ) : void |
Decodes LZW image data into pixel array. Adapted from John Cristy's ImageMagick.
|
|
Error ( ) : bool |
The read state.
|
|
Init ( ) : void |
Initializes or re-initializes reader.
|
|
Read ( ) : int |
Reads a single byte from the input stream.
|
|
ReadBlock ( ) : int |
Reads next variable length block from input.
|
|
ReadContents ( ) : void |
Main file parser. Reads GIF content blocks.
|
|
ReadGraphicControlExt ( ) : void |
Reads Graphics Control Extension values.
|
|
ReadHeader ( ) : void |
Reads GIF file header information.
|
|
ReadImage ( ) : void |
Reads next frame image.
|
|
ReadLsd ( ) : void |
Reads Logical Screen Descriptor
|
|
ReadNetscapeExt ( ) : void |
Reads Netscape extenstion to obtain iteration count.
|
|
ReadShort ( ) : int |
Reads next 16-bit value, LSB first.
|
|
ResetFrame ( ) : void |
Resets frame state for reading next image.
|
|
Skip ( ) : void |
Skips variable length blocks up to and including next zero length block.
|
Method | Description | |
---|---|---|
GetPixels ( |
Creates new frame image from current data (and previous frames as specified by their disposition codes).
|
|
ReadColorTable ( int numberColors ) : int[] |
Reads color table as 256 RGB integer values
|
|
SetPixels ( ) : void | ||
SetPixels ( int pixels ) : void |
public GetDelay ( int index ) : int | ||
index | int | Int index of frame. |
return | int |
public Read ( Stream inStream ) : int | ||
inStream | Stream | BufferedInputStream containing GIF file. |
return | int |
public Read ( String name ) : int | ||
name | String | String containing source. |
return | int |