Name

requestImage()

Examples
def setup():
    global bigImage
    bigImage = requestImage("something.jpg")

def draw():
    if bigImage.width == 0:
        pass # Image is not yet loaded
    elif bigImage.width == -1:
        pass # This means an error occurred during image loading
    else:
        # Image is ready to go, draw it
        image(bigImage, 0, 0)
Description
Syntax
requestImage(filename)
requestImage(filename, extension)
Parameters
filename
extension
Related PImage
loadImage()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License