Added loadImage(InputStream).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1104 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ImageManager.java,v 1.14 2002/02/24 19:26:26 mdb Exp $
|
||||
// $Id: ImageManager.java,v 1.15 2002/03/08 09:34:42 mdb Exp $
|
||||
|
||||
package com.threerings.media;
|
||||
|
||||
@@ -82,6 +82,18 @@ public class ImageManager
|
||||
return _loader.loadImage(_rmgr.getResource(path));
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the image from the supplied input stream. 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 (InputStream source)
|
||||
throws IOException
|
||||
{
|
||||
return _loader.loadImage(source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an image that is optimized for rendering in the client's
|
||||
* environment and decodes the image data from the specified source
|
||||
|
||||
Reference in New Issue
Block a user