image()
Image / Loading & DisplayingDescription
Displays an image at the given position. Optionally specify width and height.
Syntax
void image(PImage* img, float x, float y)
void image(PImage* img, float x, float y, float w, float h)
Parameters
| Name | Type | Description |
|---|---|---|
| img | PImage* | the image to display |
| x | float | x-coordinate |
| y | float | y-coordinate |
| w | float | width (optional) |
| h | float | height (optional) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...