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 › PImage resize -- quickest way
Page Index Toggle Pages: 1
PImage resize -- quickest way? (Read 339 times)
PImage resize -- quickest way?
Nov 29th, 2007, 7:55pm
 
hi all

[ignore the following question... found in the documentation that img.copy() will automatically resize]

what's the quickest way to resize a PImage? i.e. not just to display to screen but so that the actual PImage itself changes. do i need to use my own algorithm (approximating nearest neighbour?) as i iterate through all the pixels of the source PImage and copy them to the destination PImage? or is there a quicker way?

thanks for any suggestions.

Re: PImage resize -- quickest way?
Reply #1 - Dec 1st, 2007, 2:37pm
 
Quickest you say?

Quickest as in quickest to code? Or performance?

Quickest to code, use:
http://processing.org/reference/copy_.html
Page Index Toggle Pages: 1