Constructor and Description |
---|
Image(File gif)
Construct from GIF file.
|
Image(String src) |
Image(String src,
int width,
int height,
int border) |
Image(String dirname,
String src)
Construct from GIF file.
|
Modifier and Type | Method and Description |
---|---|
Image |
alt(String alt) |
Image |
border(int b) |
Image |
setSizeFromGif(File gif)
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(String dirname,
String pathname)
Set the image size from the header of a GIF file.
|
attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, size, style, top, toString, width, width, width, write, write
public Image(String src)
public Image(File gif)
public Image(String src, int width, int height, int border)
public Image border(int b)
public Image setSizeFromGif(String dirname, String pathname)
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.public Image setSizeFromGif(String filename)
Copyright © 2013. All rights reserved.