addImage

format

void addImage(String path) throws Exception

description

Adds an image or a pre-analyzed EDF file to the current MediaCollection. Before adding an image to the MediaCollection, this method converts it to a MediaObject (EDF file).

parameters

path - the path and filename of the item to add

(for example, c:\images\sunsets\sunset1.gif)

returns

nothing (void)

throws

addImage() throws an Exception if path does not exist, is not a file, or if the image is not a supported image type.