Class Scale
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.optional.imageio.ImageOperation
org.apache.tools.ant.types.optional.imageio.TransformOperation
org.apache.tools.ant.types.optional.imageio.Scale
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classEnumerated class for proportions attribute.
- 
Field SummaryFields inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperationinstructionsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAbstract method which is intended to create an image buffer and return it so it can be drawn into another object.Performs the transformations.floatGet the height.floatgetWidth()Get the width.performScale(BufferedImage image) Scale an image.voidSets the height of the image, either as an integer or a %.voidSets the behaviour regarding the image proportions.voidSets the width of the image, either as an integer or a %.Methods inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperationaddDraw, addRotate, addScaleMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Constructor Details- 
Scalepublic Scale()
 
- 
- 
Method Details- 
setProportionsSets the behaviour regarding the image proportions.- Parameters:
- pa- the enumerated value.
 
- 
setWidthSets the width of the image, either as an integer or a %. Defaults to 100%.- Parameters:
- width- the value to use.
 
- 
setHeightSets the height of the image, either as an integer or a %. Defaults to 100%.- Parameters:
- height- the value to use.
 
- 
getWidthpublic float getWidth()Get the width.- Returns:
- the value converted from the width string.
 
- 
getHeightpublic float getHeight()Get the height.- Returns:
- the value converted from the height string.
 
- 
performScaleScale an image.- Parameters:
- image- the image to scale.
- Returns:
- the scaled image.
 
- 
executeTransformOperationPerforms the transformations..- Specified by:
- executeTransformOperationin class- TransformOperation
- Parameters:
- image- The image to perform the transformation on.
- Returns:
- the transformed image.
 
- 
executeDrawOperationAbstract 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:
- executeDrawOperationin interface- DrawOperation
- Returns:
- a planar image
 
 
-