Method Image.Image()->copy()
- Method copy
copy()object
copy(objectintx1,inty1,intx2,inty2)
copy(objectintx1,inty1,intx2,inty2,intr,intg,intb)
copy(objectintx1,inty1,intx2,inty2,intr,intg,intb,intalpha)- Description
-
Copies this part of the image. The requested area can be smaller, giving a cropped image, or bigger - the new area will be filled with the given or current color.



original ->copy
(5,5,
XSIZE-6,YSIZE-6)->copy
(-5,-5,
XSIZE+4,YSIZE+4,
10,75,10) - Parameter
x1 - Parameter
y1 - Parameter
x2 - Parameter
y2 -
The requested new area. Default is the old image size.
- Parameter
r - Parameter
g - Parameter
b -
color of the new image
- Parameter
alpha -
new default alpha channel value
- Returns
-
a new image object
- Note
- See also