Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
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()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas