Packageorg.purepdf.pdf.codec
Classpublic class GifImage
InheritanceGifImage Inheritance Object



Public Properties
 PropertyDefined By
  framesCount : int
[read-only]
GifImage
Protected Properties
 PropertyDefined By
  bgColor : int
GifImage
  bgIndex : int
GifImage
  block : Bytes
GifImage
  blockSize : int = 0
GifImage
  delay : int = 0
GifImage
  dispose : int = 0
GifImage
  frames : Vector.<GifFrame>
GifImage
  fromData : ByteArray
GifImage
  fromUrl : String
GifImage
  gctFlag : Boolean
GifImage
  height : int
GifImage
  input : DataInputStream
GifImage
  interlace : Boolean
GifImage
  ix : int
GifImage
  lctFlag : Boolean
GifImage
  lctSize : int
GifImage
  m_bpc : int
GifImage
  m_curr_table : Bytes
GifImage
  m_gbpc : int
GifImage
  m_global_table : Bytes
GifImage
  m_line_stride : int
GifImage
  m_local_table : Bytes
GifImage
  m_out : ByteArray
GifImage
  pixelAspect : int
GifImage
  pixels : Bytes
GifImage
  pixelStack : Bytes
GifImage
  prefix : Vector.<int>
GifImage
  suffix : Bytes
GifImage
  transIndex : int
GifImage
  transparency : Boolean = false
GifImage
  width : int
GifImage
Public Methods
 MethodDefined By
  
GifImage(data:ByteArray)
GifImage
  
getImage(frame:int = 1):ImageElement
Gets the image from a frame.
GifImage
Protected Methods
 MethodDefined By
  
decodeImageData():Boolean
GifImage
  
readBlock():int
GifImage
  
GifImage
  
GifImage
  
GifImage
  
readHeader():void
GifImage
  
readImage():void
GifImage
  
readLSD():void
GifImage
  
readShort():int
GifImage
  
setPixel(x:int, y:int, v:int):void
GifImage
  
skip():void
GifImage
Protected Constants
 ConstantDefined By
  MaxStackSize : int = 4096
[static]
GifImage
  SHORT_MASK : int = 0x7fff
[static]
GifImage
Property Detail
bgColorproperty
protected var bgColor:int

bgIndexproperty 
protected var bgIndex:int

blockproperty 
protected var block:Bytes

blockSizeproperty 
protected var blockSize:int = 0

delayproperty 
protected var delay:int = 0

disposeproperty 
protected var dispose:int = 0

framesproperty 
protected var frames:Vector.<GifFrame>

framesCountproperty 
framesCount:int  [read-only]


Implementation
    public function get framesCount():int
fromDataproperty 
protected var fromData:ByteArray

fromUrlproperty 
protected var fromUrl:String

gctFlagproperty 
protected var gctFlag:Boolean

heightproperty 
protected var height:int

inputproperty 
protected var input:DataInputStream

interlaceproperty 
protected var interlace:Boolean

ixproperty 
protected var ix:int

lctFlagproperty 
protected var lctFlag:Boolean

lctSizeproperty 
protected var lctSize:int

m_bpcproperty 
protected var m_bpc:int

m_curr_tableproperty 
protected var m_curr_table:Bytes

m_gbpcproperty 
protected var m_gbpc:int

m_global_tableproperty 
protected var m_global_table:Bytes

m_line_strideproperty 
protected var m_line_stride:int

m_local_tableproperty 
protected var m_local_table:Bytes

m_outproperty 
protected var m_out:ByteArray

pixelAspectproperty 
protected var pixelAspect:int

pixelsproperty 
protected var pixels:Bytes

pixelStackproperty 
protected var pixelStack:Bytes

prefixproperty 
protected var prefix:Vector.<int>

suffixproperty 
protected var suffix:Bytes

transIndexproperty 
protected var transIndex:int

transparencyproperty 
protected var transparency:Boolean = false

widthproperty 
protected var width:int

Constructor Detail
GifImage()Constructor
public function GifImage(data:ByteArray)



Parameters
data:ByteArray
Method Detail
decodeImageData()method
protected function decodeImageData():Boolean

Returns
Boolean
getImage()method 
public function getImage(frame:int = 1):ImageElement

Gets the image from a frame. First frame is 1

Parameters

frame:int (default = 1)

Returns
ImageElement — the image
readBlock()method 
protected function readBlock():int

Returns
int
readColorTable()method 
protected function readColorTable(bpc:int):Bytes

Parameters

bpc:int

Returns
Bytes
readContents()method 
protected function readContents():void

readGraphicControlExt()method 
protected function readGraphicControlExt():void

readHeader()method 
protected function readHeader():void

readImage()method 
protected function readImage():void

readLSD()method 
protected function readLSD():void

readShort()method 
protected function readShort():int

Returns
int
setPixel()method 
protected function setPixel(x:int, y:int, v:int):void

Parameters

x:int
 
y:int
 
v:int

skip()method 
protected function skip():void

Constant Detail
MaxStackSizeConstant
protected static const MaxStackSize:int = 4096

SHORT_MASKConstant 
protected static const SHORT_MASK:int = 0x7fff