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.
IndexSuggestions & BugsSoftware,  Documentation,  Website Suggestions › negative vals for PImage.copy()
Page Index Toggle Pages: 1
negative vals for PImage.copy() (Read 755 times)
negative vals for PImage.copy()
Dec 28th, 2005, 6:02am
 
would be nice if PImage.copy() could accept negative differences between sx/sy and dx/dy, to use it for quick PImage inverting (especially handy for those doing video mirror-type stuffs).

for example:
Code:

PImage img = new PImage(width, height);
img.copy(img.width-1, 0, img.width, img.height, 0, 0, img.width, img.height);


doncha think?
Re: negative vals for PImage.copy()
Reply #1 - Dec 28th, 2005, 4:49pm
 
Couldn't you do 255-color value to get the inverse? That is one way to fake it.
Page Index Toggle Pages: 1