public class ImageManager extends Object
Constructor and Description |
---|
ImageManager() |
Modifier and Type | Method and Description |
---|---|
static PImage |
loadImage(PApplet app,
String filename)
Load a single bitmap file return a reference to the PImage created.
|
static PImage[] |
loadImage(PApplet app,
String[] filename)
Load images from multiple files
|
static PImage[] |
makeTiles1D(PApplet app,
PImage img,
int nCols,
int nRows)
Make multiple images from a given image.
|
static PImage[][] |
makeTiles2D(PApplet app,
PImage img,
int nCols,
int nRows)
Make multiple images from a given image.
|
public static PImage loadImage(PApplet app, String filename)
app
- filename
- public static PImage[] loadImage(PApplet app, String[] filename)
app
- filename
- an array of filenamespublic static PImage[][] makeTiles2D(PApplet app, PImage img, int nCols, int nRows)
app
- img
- the tiled imagenCols
- number of tiles acrossnRows
- number of tiles downpublic static PImage[] makeTiles1D(PApplet app, PImage img, int nCols, int nRows)
app
- img
- the tiled imagenCols
- number of tiles acrossnRows
- number of tiles downProcessing library G4P by Peter Lager. (c) 2015