Trimmed tileset takes care of setting up its name, but the image path must

be set by the caller.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1525 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-06-21 18:44:28 +00:00
parent c3c08a03b3
commit 4357c047f3
2 changed files with 8 additions and 5 deletions
@@ -1,5 +1,5 @@
//
// $Id: ComponentBundlerTask.java,v 1.10 2002/06/21 18:09:37 mdb Exp $
// $Id: ComponentBundlerTask.java,v 1.11 2002/06/21 18:44:28 mdb Exp $
package com.threerings.cast.bundle.tools;
@@ -184,7 +184,6 @@ public class ComponentBundlerTask extends Task
TrimmedTileSet tset =
TrimmedTileSet.trimTileSet(aset, jout);
tset.setImagePath(ipath);
tset.setName(aset.getName());
// also write our trimmed tileset to the jar file
String tpath = composePath(
@@ -1,5 +1,5 @@
//
// $Id: TrimmedTileSet.java,v 1.2 2002/06/21 18:09:34 mdb Exp $
// $Id: TrimmedTileSet.java,v 1.3 2002/06/21 18:44:27 mdb Exp $
package com.threerings.media.tile;
@@ -38,14 +38,18 @@ public class TrimmedTileSet extends TileSet
}
/**
* Creates a trimmed tileset from the supplied source tileset. See
* {@link TileSetTrimmer#trimTileSet} for further information.
* Creates a trimmed tileset from the supplied source tileset. The
* image path must be set by hand to the appropriate path based on
* where the image data that is written to the <code>destImage</code>
* parameter is actually stored on the file system. See {@link
* TileSetTrimmer#trimTileSet} for further information.
*/
public static TrimmedTileSet trimTileSet (
TileSet source, OutputStream destImage)
throws IOException
{
final TrimmedTileSet tset = new TrimmedTileSet();
tset.setName(source.getName());
int tcount = source.getTileCount();
// grab the dimensions of the original tiles