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

Method image

core/src/processing/core/PApplet.java:12111–12114  ·  view source on GitHub ↗

The image() function draws an image to the display window. Images must be in the sketch's "data" directory to load correctly. Select "Add file..." from the "Sketch" menu to add the image to the data directory, or just drag the image file onto the sketch window. Processing currently works with

(PImage img, float a, float b)

Source from the content-addressed store, hash-verified

12109 * @see PGraphics#alpha(int)
12110 */
12111 public void image(PImage img, float a, float b) {
12112 if (recorder != null) recorder.image(img, a, b);
12113 g.image(img, a, b);
12114 }
12115
12116
12117 /**

Callers 1

drawPrimitiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected