org.mortbay.html
Class Image
HTML Image Tag.
$Id: Image.java,v 1.8 2005/08/13 00:01:23 gregwilkins Exp $
ALIGN , BGCOLOR , BOTTOM , CENTER , CLASS , COLOR , HEIGHT , ID , LEFT , MIDDLE , RIGHT , SIZE , STYLE , TOP , VALIGN , WIDTH , attributeMap , noAttributes |
Image(File gif) - Construct from GIF file.
|
Image(String src) - Construct with attributes.
|
Image(String dirname, String src) - Construct from GIF file.
|
Image(String src, int width, int height, int border)
|
attribute , attribute , attribute , attributes , attributes , bgColor , bottom , center , color , cssClass , cssID , height , height , height , left , middle , right , setAttributesFrom , size , size , size , style , toString , top , width , width , width , write , write , write |
Image
public Image(File gif)
Construct from GIF file.
Image
public Image(String src)
Construct with attributes.
Image
public Image(String dirname,
String src)
Construct from GIF file.
Image
public Image(String src,
int width,
int height,
int border)
alt
public Image alt(String alt)
border
public Image border(int b)
setSizeFromGif
public Image setSizeFromGif(File gif)
Set the image size from the header of a GIF file.
setSizeFromGif
public Image setSizeFromGif(String filename)
Set the image size from the header of a GIF file.
setSizeFromGif
public Image setSizeFromGif(String dirname,
String pathname)
Set the image size from the header of a GIF file.
dirname
- The directory name, expected to be in OS formatpathname
- The image path name relative to the directory.
Expected to be in WWW format (i.e. with slashes)
and will be converted to OS format.
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.