Files
MagicSetEditor2/doc/function/rotate_image.txt
2020-04-25 23:46:30 +02:00

22 lines
886 B
Plaintext

Function: rotate_image
DOC_MSE_VERSION: since 0.3.9, called rotate until 2.0.2
--Usage--
> rotate_image(input: image, angle: some_number)
Rotate an image. The image can become larger to accomodate the rotated bounding box.
--Parameters--
! Parameter Type Description
| @input@ [[type:image]] Image to rotate.
| @angle@ [[type:double]] Angle to rotate by, in degrees counter clockwise.
--Examples--
> rotate_image("image_logo.png", angle:30) == [[Image]]
>>> rotate_image(<img src="image_logo.png" alt='"image_logo.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, angle:30) == <img src="image_logo_rotate30.png" alt='"image_logo_rotate30.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
--See also--
| [[fun:flip_horizontal]] Flip an image horizontally
| [[fun:flip_vertical]] Flip an image vertically