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.
IndexProgramming Questions & HelpSyntax Questions › Stretching an image
Page Index Toggle Pages: 1
Stretching an image (Read 266 times)
Stretching an image
Oct 7th, 2008, 5:08pm
 
How do you take an image which is say 100 x 100 and stretch it in processing so it spans a larger set of dimensions, say 250 x 250?
Re: Stretching an image
Reply #1 - Oct 8th, 2008, 11:30am
 

http://processing.org/reference/image_.html

image(img, x, y, width, height)

lets you specify the position and the NEW width and height. see examples on that page.
Page Index Toggle Pages: 1