Package VASSAL.tools.image.tilecache
Interface TileSlicer
- All Known Implementing Classes:
TileSlicerImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Slices an image into tiles.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Method Summary
Modifier and TypeMethodDescriptionvoid
slice
(BufferedImage src, String iname, String tpath, int tw, int th, ExecutorService exec, Callback<Void> progress) Slices an image into tiles.
-
Method Details
-
slice
void slice(BufferedImage src, String iname, String tpath, int tw, int th, ExecutorService exec, Callback<Void> progress) throws IOException Slices an image into tiles.- Parameters:
src
- the source imageiname
- the basename for the tilestpath
- the path for the tilestw
- the tile widthth
- the tile heightexec
- the executor in which to run tasksprogress
- a callback for indicating progress- Throws:
IOException
-