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)
| 5098 | * @see PGraphics#background(float, float, float, float) |
| 5099 | */ |
| 5100 | public PImage loadImage(String filename) { |
| 5101 | return loadImage(filename, null); |
| 5102 | } |
| 5103 | |
| 5104 | |
| 5105 | /** |
no test coverage detected