Name

makeAnimation — The methods in this file will create simple GIF animations from a series of images.

Overview

The methods in this file will create simple GIF animations from a series of images. For best results the series of images should represent a similar theme (for example, a set of map images showing a time series of change).

Syntax

void makeAnimation ( String outputName , double delay , String dir , String filePattern ) 

The command has the following arguments:

outputName

The name of the output file.

delay

The delay between frames, in seconds.

dir

The directory to look for the files.

filePattern

A wildcard pattern to match file names.

Description

This method will create a gif animation from a set of image files specified by a pattern. All files in the directory that match the file name pattern will be used in the animation, in sorted order.

The filename pattern uses simple wildcard symbols '?' (match any one character and '*' (match any string of characters).

Syntax

void makeAnimation ( String outputName , double delay , String [ ] files ) 

The command has the following arguments:

outputName

The name of the output file.

delay

The delay between frames, in seconds

files

The array of file names to compose into the animation

Description

This method will create a gif animation from an array of image files.