You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copies a region of pixels from one image into another. If the source and destination regions aren't the same size, it will automatically resize source pixels to fit the specified target region. No alpha information is used in the process, however if the source image has an alpha channel set, it will be copied as well.
<br /><br />
As of release 0149, this function ignores <b>imageMode()</b>.
]]></description>
<syntax>
pimg.copy(sx, sy, sw, sh, dx, dy, dw, dh)
pimg.copy(src, sx, sy, sw, sh, dx, dy, dw, dh)
</syntax>
<parameter>
<label>pimg</label>
<description><![CDATA[PImage: any object of type PImage]]></description>
</parameter>
<parameter>
<label>sx</label>
<description><![CDATA[int: X coordinate of the source's upper left corner]]></description>
</parameter>
<parameter>
<label>sy</label>
<description><![CDATA[int: Y coordinate of the source's upper left corner]]></description>