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 › Canvas larger than the screen
Page Index Toggle Pages: 1
Canvas larger than the screen? (Read 537 times)
Canvas larger than the screen?
Mar 28th, 2006, 6:14pm
 
Hello All,

I am trying to use processing to create a drawing with a very high resolution.

My question: Is it possible to use a 'canvas' in processing that is bigger than the computer's screen size?

And can I still save this canvas as a TIF?

Using the size command to create a window appears to limit it to the monitor's resolution. Do you know of any solution, perhaps by drawing at coordinates outside of the screen's range and then shifting or scrolling the drawing into view?

Many thanks!

Michael
Re: Canvas larger than the screen?
Reply #1 - Mar 28th, 2006, 9:31pm
 
since this seems to be coming up every few days, i've just added it to the faq:
http://processing.org/faq/bugs.html#big
Re: Canvas larger than the screen?
Reply #2 - Mar 29th, 2006, 11:07am
 
thanks for the response.

and thanks for developing this entire project!
have been waiting for someting like this for years.

it's easy to learn, very coherent, nice & fast -- a joy to use!
Re: Canvas larger than the screen?
Reply #3 - Mar 31st, 2006, 4:46pm
 
Still trying to create a large image, but can't get the code listed in the faq/bugs.html file to work.

PGraphics big;

void setup() {
 big = (PGraphics) createGraphics(3000, 3000, P3D);

 big.beginFrame();
 big.background(128);
 big.line(20, 1800, 1800, 900);
 // etc..
 big.endFrame();

 // make sure the file is written to the sketch folder
 String path = savePath("big.tif");
 big.save(path);
}



This gives me the error:
Semantic Error: No applicable overload for a method with signature "createGraphics(int, int, java.lang.String)" was found in type "processing.core.PApplet". Perhaps you wanted the overloaded version "processing.core.PGraphics createGraphics(java.lang.String $1, java.lang.String $2);" instead?


Am using version 109 on a Mac and PC. Tried substituting the PGraphics with 'PGraphics' 2 & 3 but no results.

What am I missing here?

Thanks very much!

Michael
Re: Canvas larger than the screen?
Reply #4 - Mar 31st, 2006, 5:34pm
 
try this instead:
big = (PGraphics) createGraphics(3000, 3000, P3D, null);

i guess i just need to add the other one to the api.
Page Index Toggle Pages: 1