org.mortbay.html
public class Image extends Tag
Version: $Id: Image.java,v 1.8 2005/08/13 00:01:23 gregwilkins Exp $
See Also: Block
Constructor Summary | |
---|---|
Image(String src) | |
Image(String dirname, String src) Construct from GIF file. | |
Image(File gif) Construct from GIF file. | |
Image(String src, int width, int height, int border) |
Method Summary | |
---|---|
Image | alt(String alt) |
Image | border(int b) |
Image | setSizeFromGif(String dirname, String pathname) Set the image size from the header of a GIF file. |
Image | setSizeFromGif(String filename) Set the image size from the header of a GIF file. |
Image | setSizeFromGif(File gif) Set the image size from the header of a GIF file. |
Parameters: dirname The directory name, expected to be in OS format pathname 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.