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 | addDraw(Draw instr)
Adds a Draw ImageOperation to the chain. |
void | addFileset(FileSet set)
Adds a set of files to be deleted. |
void | addImageOperation(ImageOperation instr)
Adds an ImageOperation to chain. |
void | addRotate(Rotate instr)
Adds a Rotate ImageOperation to the chain |
void | addScale(Scale instr)
Adds 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)
Sets the destination directory for manipulated images. |
void | setEncoding(String encoding)
Set the image encoding type.
|
void | setFailOnError(boolean failonerror)
If false, note errors to the output but keep going. |
void | setGc(boolean gc)
Enables Garbage Collection after each image processed. |
void | setOverwrite(boolean overwrite)
Sets whether or not 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 Draw operation to add to the chain
See Also: Draw DrawOperation
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
Parameters: file The file to be processed
Parameters: destDir The destination directory
Parameters: failonerror true or false