Packageorg.alivepdf.images.gif.decoder
Classpublic class GIFDecoder
InheritanceGIFDecoder Inheritance Object



Public Properties
 PropertyDefined By
  disposeValue : int
[read-only]
GIFDecoder
Public Methods
 MethodDefined By
  
GIFDecoder
  
getDelay(n:int):int
Gets display duration for specified frame.
GIFDecoder
  
Gets the image contents of frame n.
GIFDecoder
  
Gets the number of frames read from file.
GIFDecoder
  
getFrameSize():Rectangle
Gets image size.
GIFDecoder
  
Gets the first (or only) image read.
GIFDecoder
  
Gets the "Netscape" iteration count, if any.
GIFDecoder
  
read(inStream:ByteArray):int
Reads GIF image from stream
GIFDecoder
Property Detail
disposeValueproperty
disposeValue:int  [read-only]


Implementation
    public function get disposeValue():int
Constructor Detail
GIFDecoder()Constructor
public function GIFDecoder()



Method Detail
getDelay()method
public function getDelay(n:int):int

Gets display duration for specified frame.

Parameters

n:int — int index of frame

Returns
int — delay in milliseconds
getFrame()method 
public function getFrame(n:int):GIFFrame

Gets the image contents of frame n.

Parameters

n:int

Returns
GIFFrame — BufferedImage representation of frame, or null if n is invalid.
getFrameCount()method 
public function getFrameCount():int

Gets the number of frames read from file.

Returns
int — frame count
getFrameSize()method 
public function getFrameSize():Rectangle

Gets image size.

Returns
Rectangle — GIF image dimensions
getImage()method 
public function getImage():GIFFrame

Gets the first (or only) image read.

Returns
GIFFrame — BitmapData containing first frame, or null if none.
getLoopCount()method 
public function getLoopCount():int

Gets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitiely.

Returns
int — iteration count if one was specified, else 1.
read()method 
public function read(inStream:ByteArray):int

Reads GIF image from stream

Parameters

inStream:ByteArray — containing GIF file.

Returns
int — read status code (0 = no errors)