MCPcopy Index your code
hub / github.com/processing/processing / loadImage

Method loadImage

core/src/processing/core/PApplet.java:5485–5488  ·  view source on GitHub ↗

( begin auto-generated from loadImage.xml ) 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, lo

(String filename)

Source from the content-addressed store, hash-verified

5483 * @see PGraphics#background(float, float, float, float)
5484 */
5485 public PImage loadImage(String filename) {
5486// return loadImage(filename, null, null);
5487 return loadImage(filename, null);
5488 }
5489
5490// /**
5491// * @param extension the type of image to load, for example "png", "gif", "jpg"

Callers 2

requestImageMethod · 0.95
parseMTLMethod · 0.45

Calls 14

loadImageTGAMethod · 0.95
printStackTraceMethod · 0.95
loadBytesMethod · 0.95
loadTIFFMethod · 0.95
checkAlphaMethod · 0.95
loadImageIOMethod · 0.95
startsWithMethod · 0.80
getNameMethod · 0.45
equalsMethod · 0.45
getImageMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected