com.lowagie.text
Class Gif

java.lang.Object
  |
  +--com.lowagie.text.Rectangle
        |
        +--com.lowagie.text.Image
              |
              +--com.lowagie.text.Gif
All Implemented Interfaces:
Element, MarkupAttributes

public class Gif
extends Image
implements Element

An Gif is the representation of a graphic element (GIF) that has to be inserted into the document

See Also:
Element, Image, Jpeg, Png

Field Summary
 
Fields inherited from class com.lowagie.text.Image
absoluteX, absoluteY, alignment, alt, annotation, AX, AY, bpc, BX, BY, colorspace, CX, CY, DEFAULT, dpiX, dpiY, DX, DY, imageMask, interpolation, invert, invertMask, LEFT, markupAttributes, mask, MIDDLE, mySerialId, plainHeight, plainWidth, profile, rawData, RIGHT, rotation, scaledHeight, scaledWidth, serialId, template, TEXTWRAP, transparency, type, UNDERLYING, url
 
Fields inherited from class com.lowagie.text.Rectangle
background, border, borderWidth, BOTTOM, BOX, color, grayFill, llx, lly, NO_BORDER, TOP, UNDEFINED, urx, ury
 
Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GIF, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, PARAGRAPH, PHRASE, PNG, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
 
Constructor Summary
  Gif(byte[] img)
          Constructs a Gif-object from memory.
  Gif(byte[] img, float width, float height)
          Constructs a Gif-object from memory.
(package private) Gif(Image image)
           
  Gif(String filename)
          Deprecated. use Image.getInstance(...) to create an Image
  Gif(String filename, float width, float height)
          Deprecated. use Image.getInstance(...) to create an Image
  Gif(URL url)
          Constructs a Gif-object, using an url.
  Gif(URL url, float width, float height)
          Deprecated. use Image.getInstance(...) to create an Image
 
Method Summary
private  void processParameters()
          This method checks if the image is a valid GIF and processes some parameters.
 
Methods inherited from class com.lowagie.text.Image
absoluteX, absoluteY, alignment, alt, annotation, bpc, colorspace, getDpiX, getDpiY, getICCProfile, getImageMask, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getMySerialId, getSerialId, getTransparency, hasAbsolutePosition, hasAbsoluteX, hasICCProfile, isGif, isImgRaw, isImgTemplate, isInterpolation, isInvertedJPEG, isInvertMask, isJpeg, isMask, isMaskCandidate, isPng, isTag, makeMask, matrix, plainHeight, plainWidth, rawData, scaleAbsolute, scaleAbsoluteHeight, scaleAbsoluteWidth, scaledHeight, scaledWidth, scalePercent, scalePercent, scaleToFit, setAbsolutePosition, setAlignment, setAlt, setAnnotation, setImageMask, setInterpolation, setInvertMask, setMarkupAttribute, setMarkupAttributes, setRotation, setRotationDegrees, setTemplateData, skip, tagICC, templateData, toURL, type, url
 
Methods inherited from class com.lowagie.text.Rectangle
backgroundColor, border, borderColor, borderWidth, bottom, bottom, getChunks, getRotation, grayFill, hasBorder, hasBorders, height, left, left, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderWidth, setBottom, setGrayFill, setLeft, setRight, setTop, top, top, width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
getChunks, process, toString, type
 

Constructor Detail

Gif

Gif(Image image)

Gif

public Gif(URL url)
    throws BadElementException,
           IOException
Constructs a Gif-object, using an url.

Parameters:
url - the URL where the image can be found.

Gif

public Gif(URL url,
           float width,
           float height)
    throws BadElementException,
           IOException
Deprecated. use Image.getInstance(...) to create an Image

Constructs a Gif-object, using an url.

Parameters:
url - the URL where the image can be found.
width - the width you want the image to have
height - the height you want the image to have.

Gif

public Gif(String filename)
    throws BadElementException,
           MalformedURLException,
           IOException
Deprecated. use Image.getInstance(...) to create an Image

Constructs a Gif-object, using a filename.

Parameters:
filename - a String-representation of the file that contains the Image.

Gif

public Gif(String filename,
           float width,
           float height)
    throws BadElementException,
           MalformedURLException,
           IOException
Deprecated. use Image.getInstance(...) to create an Image

Constructs a Gif-object, using a filename.

Parameters:
filename - a String-representation of the file that contains the Image.
width - the width you want the image to have
height - the height you want the image to have.

Gif

public Gif(byte[] img)
    throws BadElementException,
           IOException
Constructs a Gif-object from memory.

Parameters:
img - the memory image

Gif

public Gif(byte[] img,
           float width,
           float height)
    throws BadElementException,
           IOException
Constructs a Gif-object from memory.

Parameters:
img - the memory image
width - the width you want the image to have
height - the height you want the image to have
Method Detail

processParameters

private void processParameters()
                        throws BadElementException,
                               IOException
This method checks if the image is a valid GIF and processes some parameters.

BadElementException
IOException