org.apache.tools.ant.taskdefs.optional.image
public class Image extends MatchingTask
See Also: ImageOperation DataType
Field Summary | |
---|---|
protected File | destDir |
protected Vector | filesets |
protected boolean | garbage_collect |
protected Vector | instructions |
protected boolean | overwrite |
protected File | srcDir |
protected String | str_encoding |
Method Summary | |
---|---|
void | add(ImageOperation instr)
Add an ImageOperation to chain. |
void | addDraw(Draw instr)
Add a Draw ImageOperation to the chain. |
void | addFileset(FileSet set)
Add a set of files to be deleted. |
void | addImageOperation(ImageOperation instr)
Add an ImageOperation to chain. |
void | addRotate(Rotate instr)
Add a Rotate ImageOperation to the chain. |
void | addScale(Scale instr)
Add a Scale ImageOperation to the chain. |
void | execute()
Executes the Task. |
void | processFile(File file)
Executes all the chained ImageOperations on the file
specified. |
void | setDestDir(File destDir)
Set the destination directory for manipulated images. |
void | setEncoding(String encoding)
Set the image encoding type. |
void | setFailOnError(boolean failonerror)
Set whether to fail on error.
|
void | setGc(boolean gc)
Set whether to invoke Garbage Collection after each image processed.
|
void | setOverwrite(boolean overwrite)
Set whether to overwrite a file if there is a naming conflict. |
void | setSrcdir(File srcDir)
Set the source dir to find the image files. |
protected void | validateAttributes()
Ensure we have a consistent and legal set of attributes, and set
any internal flags necessary based on different combinations
of attributes. |
Parameters: instr The ImageOperation to append to the chain.
Since: Ant 1.7
Parameters: instr The Draw operation to add to the chain.
See Also: Draw DrawOperation
Parameters: set the FileSet to add.
Parameters: instr The ImageOperation to append to the chain.
Parameters: instr The Rotate operation to add to the chain.
See Also: Rotate
Parameters: instr The Scale operation to add to the chain.
See Also: Scale
Throws: BuildException on error.
Parameters: file The file to be processed.
Parameters: destDir The destination directory.
Parameters: encoding the String image encoding.
Parameters: failonerror true or false.
Parameters: gc whether to invoke the garbage collector.
Parameters: overwrite whether to overwrite.
Parameters: srcDir the directory in which the image files reside.
Throws: BuildException on error.