loadImage()
Image / Loading & DisplayingDescription
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
| Name | Type | Description |
|---|---|---|
| path | std::string | path to the image file |
Returns
PImage*Related
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...