Allowing raw images to be read from a stream.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@759 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -868,9 +868,19 @@ public class ResourceManager
|
||||
return null;
|
||||
} else if (useFastIO) {
|
||||
return FastImageIO.read(file);
|
||||
} else {
|
||||
return ImageIO.read(file);
|
||||
}
|
||||
return ImageIO.read(file);
|
||||
}
|
||||
|
||||
protected static BufferedImage loadImage (InputStream iis, boolean useFastIO)
|
||||
throws IOException
|
||||
{
|
||||
if (iis == null) {
|
||||
return null;
|
||||
} else if (useFastIO) {
|
||||
return FastImageIO.read(iis);
|
||||
}
|
||||
return ImageIO.read(iis);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user