public class ImageManager
extends java.lang.Object
Constructor and Description |
---|
ImageManager() |
Modifier and Type | Method and Description |
---|---|
static processing.core.PImage |
loadImage(processing.core.PApplet app,
java.lang.String filename)
Load a single bitmap file return a reference to the PImage created.
|
static processing.core.PImage[] |
loadImage(processing.core.PApplet app,
java.lang.String[] filename)
Load images from multiple files
|
static processing.core.PImage[] |
makeTiles1D(processing.core.PApplet app,
processing.core.PImage img,
int nCols,
int nRows)
Make multiple images from a given image.
|
static processing.core.PImage[][] |
makeTiles2D(processing.core.PApplet app,
processing.core.PImage img,
int nCols,
int nRows)
Make multiple images from a given image.
|
public static processing.core.PImage loadImage(processing.core.PApplet app, java.lang.String filename)
app
- filename
- public static processing.core.PImage[] loadImage(processing.core.PApplet app, java.lang.String[] filename)
app
- filename
- an array of filenamespublic static processing.core.PImage[][] makeTiles2D(processing.core.PApplet app, processing.core.PImage img, int nCols, int nRows)
app
- img
- the tiled imagenCols
- number of tiles acrossnRows
- number of tiles downpublic static processing.core.PImage[] makeTiles1D(processing.core.PApplet app, processing.core.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) 2017