Class Scale
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.optional.image.ImageOperation
org.apache.tools.ant.types.optional.image.TransformOperation
org.apache.tools.ant.types.optional.image.Scale
- All Implemented Interfaces:
- Cloneable,- DrawOperation
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classEnumerated class for proportions attribute.
- 
Field SummaryFields inherited from class org.apache.tools.ant.types.optional.image.ImageOperationinstructionsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjavax.media.jai.PlanarImageAbstract method which is intended to create an image buffer and return it so it can be drawn into another object.javax.media.jai.PlanarImageexecuteTransformOperation(javax.media.jai.PlanarImage image) Performs the transformations.floatGet the height.floatgetWidth()Get the width.javax.media.jai.PlanarImageperformScale(javax.media.jai.PlanarImage 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.image.TransformOperationaddRectangleMethods inherited from class org.apache.tools.ant.types.optional.image.ImageOperationaddDraw, addRotate, addScale, addTextMethods 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.
 
- 
performScalepublic javax.media.jai.PlanarImage performScale(javax.media.jai.PlanarImage image) Scale an image.- Parameters:
- image- the image to scale.
- Returns:
- the scaled image.
 
- 
executeTransformOperationpublic javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image) Performs the transformations..- Specified by:
- executeTransformOperationin class- TransformOperation
- Parameters:
- image- The image to perform the transformation on.
- Returns:
- the transformed image.
 
- 
executeDrawOperationpublic javax.media.jai.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:
- executeDrawOperationin interface- DrawOperation
- Returns:
- a planar image
 
 
-