Added mechanism for loading images directly, without converting them to a

format optimized for display.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1068 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-24 19:26:26 +00:00
parent 4641d00583
commit 9e5937ffea
@@ -1,5 +1,5 @@
//
// $Id: ImageManager.java,v 1.13 2002/02/24 02:20:43 mdb Exp $
// $Id: ImageManager.java,v 1.14 2002/02/24 19:26:26 mdb Exp $
package com.threerings.media;
@@ -70,6 +70,18 @@ public class ImageManager
return img;
}
/**
* Loads the image via the resource manager using the specified
* path. Does no caching and does not convert the image for optimized
* display on the target graphics configuration. Instead the original
* image as returned by the image loader is returned.
*/
public Image loadImage (String path)
throws IOException
{
return _loader.loadImage(_rmgr.getResource(path));
}
/**
* Creates an image that is optimized for rendering in the client's
* environment and decodes the image data from the specified source