Method Image.Image()->rotate_expand()
- Method
rotate
Method rotate_expand
objectrotate(int|floatangle)
objectrotate(int|floatangle,intr,intg,intb)
objectrotate_expand(int|floatangle)
objectrotate_expand(int|floatangle,intr,intg,intb)- Description
-
Rotates an image a certain amount of degrees (360° is a complete rotation) counter-clockwise:



original ->rotate(15,255,0,0); ->rotate_expand(15); The "expand" variant of functions stretches the image border pixels rather then filling with the given or current color.
- Parameter
angle the number of degrees to rotate
- Parameter
r - Parameter
g - Parameter
b color to fill with; default is current
- Returns
-
the new image object