G4P (GUI for Processing) 4.3.11
A set of GUI controls for your Processing sketch.
|
Static Public Member Functions | |
static PImage | loadImage (PApplet app, String filename) |
static PImage[] | loadImage (PApplet app, String[] filename) |
static PImage[] | makeTiles1D (PApplet app, PImage img, int nCols, int nRows) |
static PImage[][] | makeTiles2D (PApplet app, PImage img, int nCols, int nRows) |
This class is used to load bitmap files and create images.
Although there maybe multiple requests for a particular bitmap file only one PImage is created for each file.
|
static |
Load a single bitmap file return a reference to the PImage created.
app | the main sketch applet |
filename | the file holding the image |
|
static |
Load images from multiple files
app | the main sketch applet |
filename | an array of filenames |
|
static |
Make multiple images from a given image. This method creates a 1D array of PImage objects. The order is left-right and top-down.
app | the main sketch applet |
img | the tiled image |
nCols | number of tiles across |
nRows | number of tiles down |
|
static |
Make multiple images from a given image. This method creates a 2D array (size [nCols, nRows] ) of PImage objects.
app | the main sketch applet |
img | the tiled image |
nCols | number of tiles across |
nRows | number of tiles down |