| Property | Defined by | ||
|---|---|---|---|
| STATUS_FORMAT_ERROR : int = 1 [static]
File read status: Error decoding file (may be partially decoded)
| GIFDecoder | ||
| STATUS_OK : int = 0 [static]
File read status: No errors.
| GIFDecoder | ||
| STATUS_OPEN_ERROR : int = 2 [static]
File read status: Unable to open source.
| GIFDecoder | ||
| Property | Defined by | ||
|---|---|---|---|
| act : Array | GIFDecoder | ||
| bgColor : int | GIFDecoder | ||
| bgIndex : int | GIFDecoder | ||
| block : ByteArray | GIFDecoder | ||
| blockSize : int = 0 | GIFDecoder | ||
| data : ByteArray | GIFDecoder | ||
| delay : int = 0 | GIFDecoder | ||
| dispose : int = 0 | GIFDecoder | ||
| frameCount : int | GIFDecoder | ||
| frames : Array | GIFDecoder | ||
| gct : Array | GIFDecoder | ||
| gctFlag : Boolean | GIFDecoder | ||
| gctSize : int | GIFDecoder | ||
| height : int | GIFDecoder | ||
| ih : int | GIFDecoder | ||
| image : BitmapData | GIFDecoder | ||
| interlace : Boolean | GIFDecoder | ||
| iw : int | GIFDecoder | ||
| ix : int | GIFDecoder | ||
| iy : int | GIFDecoder | ||
| lastBgColor : int | GIFDecoder | ||
| lastDispose : int = 0 | GIFDecoder | ||
| lastImage : BitmapData | GIFDecoder | ||
| lastRect : Rectangle | GIFDecoder | ||
| lct : Array | GIFDecoder | ||
| lctFlag : Boolean | GIFDecoder | ||
| lctSize : int | GIFDecoder | ||
| loopCount : int = 1 | GIFDecoder | ||
| MaxStackSize : int = 4096 [static]
| GIFDecoder | ||
| pixelAspect : int | GIFDecoder | ||
| pixels : ByteArray | GIFDecoder | ||
| pixelStack : ByteArray | GIFDecoder | ||
| prefix : Array | GIFDecoder | ||
| status : int | GIFDecoder | ||
| suffix : ByteArray | GIFDecoder | ||
| transIndex : int | GIFDecoder | ||
| transparency : Boolean = false | GIFDecoder | ||
| width : int | GIFDecoder | ||
| Method | Defined by | ||
|---|---|---|---|
|
getDelay(n:int):int
Gets display duration for specified frame.
| GIFDecoder | ||
|
getFrame(n:int):BitmapData
Gets the image contents of frame n.
| GIFDecoder | ||
|
getFrameCount():int
Gets the number of frames read from file.
| GIFDecoder | ||
|
getFrameHeight():int
Gets image height.
| GIFDecoder | ||
|
getFrames():Array
Return the frames array
| GIFDecoder | ||
|
getFrameWidth():int
Gets image width.
| GIFDecoder | ||
|
getImage():BitmapData
Gets the first (or only) image read.
| GIFDecoder | ||
|
getLoopCount():int
Gets the "Netscape" iteration count, if any.
| GIFDecoder | ||
|
read(input:ByteArray):int
Reads GIF image from stream
| GIFDecoder | ||
|
release():void
Release all resources
| GIFDecoder | ||
| Method | Defined by | ||
|---|---|---|---|
|
decodeImageData():void
Decodes LZW image data into pixel array.
| GIFDecoder | ||
|
err():Boolean
Returns true if an error was encountered during reading/decoding
| GIFDecoder | ||
|
init():void
Initializes or re-initializes reader
| GIFDecoder | ||
|
readBlock():int
Reads next variable length block from input.
| GIFDecoder | ||
|
readByte():int
Reads a single byte from the input stream.
| GIFDecoder | ||
|
readColorTable(ncolors:int):Array
Reads color table as 256 RGB integer values
| GIFDecoder | ||
|
readContents():void
Main file parser.
| GIFDecoder | ||
|
readGraphicControlExt():void
Reads Graphics Control Extension values
| GIFDecoder | ||
|
readHeader():void
Reads GIF file header information.
| GIFDecoder | ||
|
readImage():void
Reads next frame image
| GIFDecoder | ||
|
readLSD():void
Reads Logical Screen Descriptor
| GIFDecoder | ||
|
readNetscapeExt():void
Reads Netscape extenstion to obtain iteration count
| GIFDecoder | ||
|
readShort():int
Reads next 16-bit value, LSB first
| GIFDecoder | ||
|
resetFrame():void
Resets frame state for reading next image.
| GIFDecoder | ||
|
setPixels():void
Creates new frame image from current data (and previous
frames as specified by their disposition codes).
| GIFDecoder | ||
|
skip():void
Skips variable length blocks up to and including
next zero length block.
| GIFDecoder | ||
| act | property |
protected var act:Array
| bgColor | property |
protected var bgColor:int
| bgIndex | property |
protected var bgIndex:int
| block | property |
protected var block:ByteArray
| blockSize | property |
protected var blockSize:int = 0
| data | property |
protected var data:ByteArray
| delay | property |
protected var delay:int = 0
| dispose | property |
protected var dispose:int = 0
| frameCount | property |
protected var frameCount:int
| frames | property |
protected var frames:Array
| gct | property |
protected var gct:Array
| gctFlag | property |
protected var gctFlag:Boolean
| gctSize | property |
protected var gctSize:int
| height | property |
protected var height:int
| ih | property |
protected var ih:int
| image | property |
protected var image:BitmapData
| interlace | property |
protected var interlace:Boolean
| iw | property |
protected var iw:int
| ix | property |
protected var ix:int
| iy | property |
protected var iy:int
| lastBgColor | property |
protected var lastBgColor:int
| lastDispose | property |
protected var lastDispose:int = 0
| lastImage | property |
protected var lastImage:BitmapData
| lastRect | property |
protected var lastRect:Rectangle
| lct | property |
protected var lct:Array
| lctFlag | property |
protected var lctFlag:Boolean
| lctSize | property |
protected var lctSize:int
| loopCount | property |
protected var loopCount:int = 1
| MaxStackSize | property |
protected static var MaxStackSize:int = 4096
| pixelAspect | property |
protected var pixelAspect:int
| pixels | property |
protected var pixels:ByteArray
| pixelStack | property |
protected var pixelStack:ByteArray
| prefix | property |
protected var prefix:Array
| status | property |
protected var status:int
| STATUS_FORMAT_ERROR | property |
public static var STATUS_FORMAT_ERROR:int = 1File read status: Error decoding file (may be partially decoded)
| STATUS_OK | property |
public static var STATUS_OK:int = 0File read status: No errors.
| STATUS_OPEN_ERROR | property |
public static var STATUS_OPEN_ERROR:int = 2File read status: Unable to open source.
| suffix | property |
protected var suffix:ByteArray
| transIndex | property |
protected var transIndex:int
| transparency | property |
protected var transparency:Boolean = false
| width | property |
protected var width:int
| decodeImageData | () | method |
protected function decodeImageData():voidDecodes LZW image data into pixel array. Adapted from John Cristy's ImageMagick.
| err | () | method |
protected function err():BooleanReturns true if an error was encountered during reading/decoding
ReturnsBoolean |
| getDelay | () | method |
public function getDelay(n:int):intGets display duration for specified frame.
Parametersn:int — int index of frame
|
int — delay in milliseconds
|
| getFrame | () | method |
public function getFrame(n:int):BitmapDataGets the image contents of frame n.
Parametersn:int |
BitmapData — BufferedImage representation of frame, or null if n is invalid.
|
| getFrameCount | () | method |
public function getFrameCount():intGets the number of frames read from file.
Returnsint — frame count
|
| getFrameHeight | () | method |
public function getFrameHeight():intGets image height.
Returnsint — GIF image height
|
| getFrames | () | method |
public function getFrames():ArrayReturn the frames array
ReturnsArray |
| getFrameWidth | () | method |
public function getFrameWidth():intGets image width.
Returnsint — GIF image width
|
| getImage | () | method |
public function getImage():BitmapDataGets the first (or only) image read.
ReturnsBitmapData — BufferedImage containing first frame, or null if none.
|
| getLoopCount | () | method |
public function getLoopCount():intGets the "Netscape" iteration count, if any. A count of 0 means repeat indefinitiely.
Returnsint — iteration count if one was specified, else 1.
|
| init | () | method |
protected function init():voidInitializes or re-initializes reader
| read | () | method |
public function read(input:ByteArray):intReads GIF image from stream
Parametersinput:ByteArray — containing GIF file.
|
int — read status code (0 = no errors)
|
| readBlock | () | method |
protected function readBlock():intReads next variable length block from input.
Returnsint — number of bytes stored in "buffer"
|
| readByte | () | method |
protected function readByte():intReads a single byte from the input stream. RJE:(was read() but AS doesnt support overloading)
Returnsint |
| readColorTable | () | method |
protected function readColorTable(ncolors:int):ArrayReads color table as 256 RGB integer values
Parametersncolors:int — int number of colors to read
|
Array — int array containing 256 colors (packed ARGB with full alpha)
|
| readContents | () | method |
protected function readContents():voidMain file parser. Reads GIF content blocks.
| readGraphicControlExt | () | method |
protected function readGraphicControlExt():voidReads Graphics Control Extension values
| readHeader | () | method |
protected function readHeader():voidReads GIF file header information.
| readImage | () | method |
protected function readImage():voidReads next frame image
| readLSD | () | method |
protected function readLSD():voidReads Logical Screen Descriptor
| readNetscapeExt | () | method |
protected function readNetscapeExt():voidReads Netscape extenstion to obtain iteration count
| readShort | () | method |
protected function readShort():intReads next 16-bit value, LSB first
Returnsint |
| release | () | method |
public function release():voidRelease all resources
| resetFrame | () | method |
protected function resetFrame():voidResets frame state for reading next image.
| setPixels | () | method |
protected function setPixels():voidCreates new frame image from current data (and previous frames as specified by their disposition codes).
| skip | () | method |
protected function skip():voidSkips variable length blocks up to and including next zero length block.