Name

copy

Description Copies a region of pixels from the display window to another area of the display window and copies a region of pixels from an image used as the srcImg parameter into the display window. If the source and destination regions aren't the same size, it will automatically resize the 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.

As of release 0149, this function ignores imageMode().
Syntax
copy(sx, sy, sw, sh, dx, dy, dw, dh)
copy(src, sx, sy, sw, sh, dx, dy, dw, dh)
Parameters
sxint: X coordinate of the source's upper left corner
syint: Y coordinate of the source's upper left corner
swint: source image width
shint: source image height
dxint: X coordinate of the destination's upper left corner
dyint: Y coordinate of the destination's upper left corner
dwint: destination image width
dhint: destination image height
srcPImage: an image variable referring to the source image.
Related alpha
PImage_blend
Creative Commons License