de.enough.polish.propertyfunctions
Class ImageWidthFunction
java.lang.Object
de.enough.polish.Extension
de.enough.polish.propertyfunctions.PropertyFunction
de.enough.polish.propertyfunctions.ResourceFuntion
de.enough.polish.propertyfunctions.ImageResourceFunction
de.enough.polish.propertyfunctions.ImageWidthFunction
public class ImageWidthFunction
- extends ImageResourceFunction
Measures the width of the given image. Usage: imagewidth( name )
Copyright Enough Software 2005
history
Mar 29, 2006 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
| Methods inherited from class de.enough.polish.Extension |
configure, executeAntTarget, executeAntTarget, finalize, getAntProject, getAutoStartCondition, getEnvironment, getExtensionDefinition, getExtensionSetting, getInstance, getParameterValue, getType, init, initialize, isConditionFulfilled, notifyBuildEnd, notifyBuildStart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageWidthFunction
public ImageWidthFunction()
- Creates a new width function.
process
public String process(BufferedImage image,
File resource,
String resourceName,
String[] arguments,
Environment env)
throws IOException
- Description copied from class:
ImageResourceFunction
- Evaluates the given image.
- Specified by:
process in class ImageResourceFunction
- Parameters:
image - the imageresource - the resource in questionresourceName - the name of the resourcearguments - any argumentsenv - the environment
- Returns:
- the result from this operation
- Throws:
IOException - when the processing fails