loadImage()

Image / Loading & Displaying

Description

Loads an image into a variable of type PImage. Supported formats: PNG, JPG, GIF, TGA. Images are loaded from the sketch's data folder.

Syntax

PImage* loadImage(std::string path)

Parameters

NameTypeDescription
pathstd::stringpath to the image file

Returns

PImage*

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...