org.apache.tools.ant.types.optional.image
public class Scale extends TransformOperation implements DrawOperation
See Also: Image
Nested Class Summary | |
---|---|
static class | Scale.ProportionsAttribute Enumerated class for proportions attribute. |
Method Summary | |
---|---|
PlanarImage | executeDrawOperation() {@inheritDoc }. |
PlanarImage | executeTransformOperation(PlanarImage image) {@inheritDoc }. |
float | getHeight()
Get the height. |
float | getWidth()
Get the width. |
PlanarImage | performScale(PlanarImage image)
Scale an image. |
void | setHeight(String height)
Sets the height of the image, either as an integer or a %. |
void | setProportions(Scale.ProportionsAttribute pa)
Sets the behaviour regarding the image proportions. |
void | setWidth(String width)
Sets the width of the image, either as an integer or a %.
|
Returns: the value converted from the height string.
Returns: the value converted from the width string.
Parameters: image the image to scale.
Returns: the scaled image.
Parameters: height the value to use.
Parameters: pa the enumerated value.
Parameters: width the value to use.