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.
Page Index Toggle Pages: 1
copy() destination (Read 1191 times)
copy() destination
Apr 24th, 2005, 11:27pm
 
In the reference entry for copy() the description states that it "Copies a region of pixels from one image into another". Yet the syntax shown, and the code example show only how to copy a region of pixels from an image to the display window (or from the display window to the display window).

In order to copy from one image to another, the syntax needs to be:

Code:
destImg.copy(srcImg, sx, sy, swidth, sheight, dx, dy, dwidth, dheight) 



Where destImg is the image to which the region of pixels is to be copied.
Re: copy() destination
Reply #1 - Apr 26th, 2005, 2:07am
 
The display window is an image, but yes, this is not clear enough. I've modified the description and it will be posted soon. Thank you for the feedback.
Page Index Toggle Pages: 1