URLToImage
ptolemy.actor.lib.image.URLToImage

An actor that reads a String input token naming a URL and outputs an Object Token that contains a java.awt.Image

It is possible to load a file from the local file system by using the prefix "file://" instead of "http://". Relative file paths are allowed. To specify a file relative to the current directory, use "../" or "./". For example, if the current directory contains a file called "test.jpg", then sourceURL should be set to "file:./test.jpg". If the parent directory contains a file called "test.jpg", then sourceURL should be set to "file:../test.jpg". To reference the file test.jpg, located at "/tmp/test.jpg", sourceURL should be set to "file:///tmp/test.jpg" The default value is "file:///tmp/test.jpg".

Author(s): Christopher Hylands
Version:$Id: URLToImage.java,v 1.26 2005/10/28 20:16:06 cxh Exp $
Pt.Proposed Rating:Red (cxh)
Pt.Accepted Rating:Red (cxh)