We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
imageMode (Read 1463 times)
imageMode
Apr 22nd, 2005, 1:28pm
 
Hi,

why isn't there something like a CENTER mode for this? I want to display an image in the middle of my form and then scale it. But now the behavior I get is that the image dissapears to the top left corner.

Grz, Kris.
Re: imageMode
Reply #1 - Apr 23rd, 2005, 2:03am
 
we decided it that it got just too weird to have imageMode(CENTER) with things like get() and copy() (since they're also affected by imageMode), and that it would generate more confused questions on the board than it just not existing. we figured that would be worse than just:

image(blah, x - blah.width/2, y - blah.height/2);
Page Index Toggle Pages: 1