 |
 |
 |
 |
Name |
|
imageMode() |
 |
|
|
Examples |
|
 |
BImage b;
b = loadImage("laDefense_crop.jpg");
imageMode(CENTER_DIAMETER);
image(b, 35, 35);
imageMode(CORNER);
image(b, 35, 35);
|
 |
|
Description |
|
Modifies the spatial origin of an image. The default image mode is imageMode(CORNER), which specifies the location to be the upper left corner. The imageMode(CENTER_DIAMETER) function call draws the shape from its center point. The parameter to imageMode() must be written in "ALL CAPS" because Processing is a case sensitive language. |
 |
|
|
Syntax |
|
imageMode(MODE)
|
 |
|
|
Parameters |
|
MODE |
|
Either CENTER_DIAMETER, CENTER_RADIUS, or CORNER
|
|
 |
|
|
Returns |
|
None |
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
loadImage() BImage image() imageMode() background() |
|