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 › Scaling an image
Page Index Toggle Pages: 1
Scaling an image (Read 647 times)
Scaling an image
Dec 20th, 2008, 11:35am
 
Dear all,

I've recently been stung by bug #1107 which means that PImage.resize() doesn't necessarily scale the contents of the PImage. In Java land, I would use an AffineTransformOp to rescale a BufferedImage, but I don't seem to be able to find an equivalent in processing.core... is there one?
Re: Scaling an image
Reply #1 - Dec 20th, 2008, 4:03pm
 
There might be a better way, but without thinking too much, you can already use copy() between two PImages, for example.
Page Index Toggle Pages: 1