Method Image.Image()->clone()
- Method clone
clone()object
clone(objectintxsize,intysize)
clone(objectintxsize,intysize,intr,intg,intb)
clone(objectintxsize,intysize,intr,intg,intb,intalpha)- Description
-
Copies to or initialize a new image object.



original clone clone(50,50) - Parameter
xsize - Parameter
ysize -
size of (new) image in pixels, called image is cropped to that size
- Parameter
r - Parameter
g - Parameter
b -
current color of the new image, default is black. Will also be the background color if the cloned image is empty (no drawing area made).
- Parameter
alpha -
new default alpha channel value
- Returns
-
the new object
- See also