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 & HelpPrograms › Max size(,)  Max saveFrame()
Page Index Toggle Pages: 1
Max size(,) ?  Max saveFrame() ? (Read 499 times)
Max size(,) ?  Max saveFrame() ?
Oct 27th, 2006, 8:13pm
 
If I run a drawing program with those instructions

size(1600,1400);
..
saveFrame(out_file);

the saved file is actually 1600x1180.

What is happening ? (my monitor is set to 1600x1200)

Re: Max size(,) ?  Max saveFrame() ?
Reply #1 - Oct 28th, 2006, 2:41pm
 
The maximum width and height is limited by your operating system, and is usually the width and height of your actual screen. On some machines it may simply be the number of pixels on your current screen, meaning that a screen that's 800x600 could support size(1600, 300), since it's the same number of pixels. This varies widely so you'll have to try different rendering modes and sizes until you get what you're looking for. If you need something larger, use createGraphics to create a non-visible drawing surface.

From the sounds of it, you're either on a Mac, which is resizing the window to fit the available space, which is 1600x1200 minus 20 pixels for the menu bar. That or a Windows or Linux machine, which is limiting the size of the window because the window frame border is 20 pixels.

To use full-screen, use "Present" mode.
Page Index Toggle Pages: 1