lib.tilers
Class RectangularPixelTiler
java.lang.Object
lib.tilers.RectangularPixelTiler
- All Implemented Interfaces:
- Tiler<java.awt.image.BufferedImage>
public class RectangularPixelTiler
- extends java.lang.Object
- implements Tiler<java.awt.image.BufferedImage>
Rectangle tiler. Given the pixels in the x and y axis that a
block must be, it tiles the image into as many blocks can fit.
Method Summary |
java.util.ArrayList<java.awt.image.BufferedImage> |
tile(java.awt.image.BufferedImage image)
Tile the given object according |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RectangularPixelTiler
public RectangularPixelTiler(int blockwidth,
int blockheight)
- Parameters:
blockwidth
- the pixels each block will be in the x axleblockheight
- the pixels each block will be in the y axle
tile
public java.util.ArrayList<java.awt.image.BufferedImage> tile(java.awt.image.BufferedImage image)
- Description copied from interface:
Tiler
- Tile the given object according
- Specified by:
tile
in interface Tiler<java.awt.image.BufferedImage>
- Parameters:
image
- the object to tile
- Returns:
- an array list holding the tiles of the object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object