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 › Query image resolution
Page Index Toggle Pages: 1
Query image resolution? (Read 403 times)
Query image resolution?
May 25th, 2008, 7:54am
 
Python noob question (but, I did try searching first, no luck).  Is it possible to query the resolution of an image via processing?  Obviously via PImage one can load an image, but once loaded,... how can I query its resolution?  Many thanks.
Re: Query image resolution?
Reply #1 - May 25th, 2008, 8:09am
 
I'll answer it myself.  I'd tried the PImage field .width, but it didn't work.  Then I saw it in a code example, tried it again, and it DID work.  Go figure Wink
Page Index Toggle Pages: 1