MCPcopy Index your code
hub / github.com/benfry/processing4 / loadImage

Method loadImage

core/src/processing/core/PApplet.java:5100–5102  ·  view source on GitHub ↗

Loads an image into a variable of type PImage . Four types of images ( .gif , .jpg , .tga , .png ) images may be loaded. To load correctly, images must be located in the data directory of the current sketch. In most cases, load all images in setup()

(String filename)

Source from the content-addressed store, hash-verified

5098 * @see PGraphics#background(float, float, float, float)
5099 */
5100 public PImage loadImage(String filename) {
5101 return loadImage(filename, null);
5102 }
5103
5104
5105 /**

Callers 1

requestImageMethod · 0.95

Calls 4

loadImageMethod · 0.95
loadImageMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected