We can use the raw images here because we're just processing them into

other raw images.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2531 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-05-02 23:32:37 +00:00
parent 77cd7f7efe
commit 1694881ac2
@@ -1,5 +1,5 @@
//
// $Id: TileSetTrimmer.java,v 1.7 2003/04/27 06:38:15 mdb Exp $
// $Id: TileSetTrimmer.java,v 1.8 2003/05/02 23:32:37 mdb Exp $
package com.threerings.media.tile.util;
@@ -86,7 +86,7 @@ public class TileSetTrimmer
for (int ii = 0; ii < tcount; ii++) {
// extract the image from the original tileset
try {
timgs[ii] = source.getTileImage(ii);
timgs[ii] = source.getRawTileImage(ii);
} catch (RasterFormatException rfe) {
throw new IOException("Failed to get tile image " +
"[tidx=" + ii + ", tset=" + source +
@@ -110,7 +110,7 @@ public class TileSetTrimmer
BufferedImage image = null;
try {
image = ImageUtil.createCompatibleImage(
(BufferedImage)source.getTileSetImage(), nextx, maxy);
(BufferedImage)source.getRawTileSetImage(), nextx, maxy);
} catch (RasterFormatException rfe) {
throw new IOException("Failed to create trimmed tileset image " +