Name

loadImage()

Examples
img = loadImage("laDefense.jpg")
image(img, 0, 0)
def setup():
    global img
    img = loadImage("laDefense.jpg")

def draw():
    image(img, 0, 0)
def setup():
    url = "http://processing.org/img/processing-web"
    # Load image from a web server
    global webImg
    webImg = loadImage(url, "png")

def draw():
    background(0)
    image(webImg, 0, 0)
Description
Syntax
loadImage(filename)
loadImage(filename, extension)
Parameters
filename
extension
Related PImage
image()
imageMode()
background()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License