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 › Draw images to fit screen
Page Index Toggle Pages: 1
Draw images to fit screen (Read 527 times)
Draw images to fit screen
Apr 27th, 2009, 7:22pm
 
Is there any code for drawing all images to fit the entire window instead of drawing it at its regular size?

THANKS! Smiley
Re: Draw images to fit screen
Reply #1 - Apr 27th, 2009, 7:38pm
 
you can use image(img, x, y, width, height) to display an image. x and y would be 0 in your case width and height the dimensions of the window. got this from the image reference.
Page Index Toggle Pages: 1