Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

ranab::img::gif::GifImage Class Reference

Inheritance diagram for ranab::img::gif::GifImage:

Inheritance graph
[legend]
Collaboration diagram for ranab::img::gif::GifImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GifImage (int width, int height)
Graphics2D getGraphics ()
String getMimeType ()
GifCommentEx getCommentBlock ()
GifGraphicEx getGraphicBlock ()
GifNsAppEx getNsApplicationBlock ()
void setTransparency (Color col)
void resetTransparency ()
void setDelay (int delay)
void resetDelay ()
void setIterationCount (int count)
void updateColorTable (Color col)
void printColor ()
void addImage (GifImage gi)
void encode (OutputStream os) throws IOException

Package Attributes

GifScreenDescriptor mScreenDesc
GifColor mGlobalColTable []
GifNsAppEx mApplBlk
GifCommentEx mComment
GifGraphicEx mGraphicExt
GifImageDescriptor mImageDesc
Vector mOtherImages

Static Package Attributes

final String mstHeader = "GIF89a"

Detailed Description

GIF encoder class. It supports transparency, multiple images and animation.

Author:
Rana Bhattacharyya


Constructor & Destructor Documentation

ranab::img::gif::GifImage::GifImage int  width,
int  height
[inline]
 

Constructor


Member Function Documentation

void ranab::img::gif::GifImage::addImage GifImage  gi  )  [inline]
 

Add image - animation

void ranab::img::gif::GifImage::encode OutputStream  os  )  throws IOException [inline, virtual]
 

Encode GIF image

Implements ranab::img::BaseImage.

GifCommentEx ranab::img::gif::GifImage::getCommentBlock  )  [inline]
 

Get the gif comment block. You can change the default comment using this block.

GifGraphicEx ranab::img::gif::GifImage::getGraphicBlock  )  [inline]
 

Get graphic extension block. Image transparency, animation delay is controlled by this block.

Graphics2D ranab::img::gif::GifImage::getGraphics  )  [inline, virtual]
 

Get graphics

Implements ranab::img::BaseImage.

String ranab::img::gif::GifImage::getMimeType  )  [inline, virtual]
 

get mime type

Implements ranab::img::BaseImage.

GifNsAppEx ranab::img::gif::GifImage::getNsApplicationBlock  )  [inline]
 

Get Netscape application block.

void ranab::img::gif::GifImage::printColor  )  [inline]
 

print the global color table (debug only)

void ranab::img::gif::GifImage::resetDelay  )  [inline]
 

Reset delay.

void ranab::img::gif::GifImage::resetTransparency  )  [inline]
 

Reset transparency

void ranab::img::gif::GifImage::setDelay int  delay  )  [inline]
 

Set delay.

void ranab::img::gif::GifImage::setIterationCount int  count  )  [inline]
 

set iteration count

void ranab::img::gif::GifImage::setTransparency Color  col  )  [inline]
 

Set transparency.

void ranab::img::gif::GifImage::updateColorTable Color  col  )  [inline]
 

Update color table


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:03:05 2005 by  doxygen 1.3.9.1