imageMode()

Image / Loading & Displaying

Description

Modifies the location from which images are drawn. Default is CORNER.

Syntax

void imageMode(int mode)

Parameters

NameTypeDescription
modeintCORNER, CORNERS, or CENTER

Returns

void

Related

Under the Hood

From Processing.h:

void imageMode(int mode); int rectMode, ellipseMode, imageMode;

Under the Hood

From Processing.cpp:

void PApplet::imageMode(int m){currentImageMode=m;}