addImage (MediaCollection)

format

void addImage(String path MediaCollection mCollection) throws Exception

description

Adds an image or a pre-analyzed EDF file to the MediaCollection you specify. Use this method if you want to add an image to a MediaCollection other than 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)

 

mCollection - the MediaCollection to which you want to add the image

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.