ImageLoader.load

Loads an array of <code>ImageData</code> objects from the file with the specified name. Throws an error if either an error occurs while loading the images, or if the images are not of a supported type. Returns the loaded image data array.

@param filename the name of the file to load the images from @return an array of <code>ImageData</code> objects loaded from the specified file

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the file name is null</li> </ul> @exception SWTException <ul> <li>ERROR_IO - if an IO error occurs while reading from the file</li> <li>ERROR_INVALID_IMAGE - if the image file contains invalid data</li> <li>ERROR_UNSUPPORTED_FORMAT - if the image file contains an unrecognized format</li> </ul>

  1. ImageData[] load(InputStream stream)
  2. ImageData[] load(String filename)
    class ImageLoader
    load
    (
    String filename
    )

Meta