| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.ProjectComponentorg.apache.tools.ant.types.DataTypeorg.apache.tools.ant.types.optional.image.ImageOperationorg.apache.tools.ant.types.optional.image.TransformOperationorg.apache.tools.ant.types.optional.image.ScaleImageNested Class Summary | |
static class | |
Field Summary |
Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperation | |
instructions | |
Fields inherited from class org.apache.tools.ant.types.DataType | |
checked, description, ref | |
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
project | |
Method Summary | |
PlanarImage |
|
PlanarImage |
|
float | |
float |
|
PlanarImage |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.tools.ant.types.optional.image.TransformOperation | |
addRectangle, executeTransformOperation | |
Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperation | |
addDraw, addRectangle, addRotate, addScale, addText | |
Methods inherited from class org.apache.tools.ant.types.DataType | |
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes | |
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
getProject, log, log, setProject | |
public PlanarImage executeDrawOperation()
Abstract method which is intended to create an image buffer and return it so it can be drawn into another object. Use an Alpha channel for a "transparent" background.
- Specified by:
- executeDrawOperation in interface DrawOperation
public PlanarImage executeTransformOperation(PlanarImage image)
- Overrides:
- executeTransformOperation in interface TransformOperation
public float getHeight()
public float getWidth()
public PlanarImage performScale(PlanarImage image)
public void setHeight(String height)
Sets the height of the image, either as an integer or a %. Defaults to 100%.
public void setProportions(Scale.ProportionsAttribute pa)
Sets the behaviour regarding the image proportions.
public void setWidth(String width)
Sets the width of the image, either as an integer or a %. Defaults to 100%.