org.apache.tools.ant.types.optional.image

Class Scale

public class Scale extends TransformOperation implements DrawOperation

See Also: Image

Nested Class Summary
static classScale.ProportionsAttribute
Method Summary
PlanarImageexecuteDrawOperation()
PlanarImageexecuteTransformOperation(PlanarImage image)
floatgetHeight()
floatgetWidth()
PlanarImageperformScale(PlanarImage image)
voidsetHeight(String height)
Sets the height of the image, either as an integer or a %.
voidsetProportions(Scale.ProportionsAttribute pa)
Sets the behaviour regarding the image proportions.
voidsetWidth(String width)
Sets the width of the image, either as an integer or a %.

Method Detail

executeDrawOperation

public PlanarImage executeDrawOperation()

executeTransformOperation

public PlanarImage executeTransformOperation(PlanarImage image)

getHeight

public float getHeight()

getWidth

public float getWidth()

performScale

public PlanarImage performScale(PlanarImage image)

setHeight

public void setHeight(String height)
Sets the height of the image, either as an integer or a %. Defaults to 100%.

setProportions

public void setProportions(Scale.ProportionsAttribute pa)
Sets the behaviour regarding the image proportions.

setWidth

public void setWidth(String width)
Sets the width of the image, either as an integer or a %. Defaults to 100%.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.