StyleShare/wand — Issue #2: Rotation methods
Author: dahlia
Created: 2011-10-28 02:45:18+00:00
State: open

Implement rotation methods into `wand.image.Image` class:

- `rotate(background, degree)`: A direct mapping to [`MagickRotateImage()`][1] function. Type of `background` is `wand.color.Color`. Type of `degree` is `float`.
- `rotate_left()`: Higher level method of `rotate()`. It also rotates the canvas instead of taking `background` argument.
- `rotate_right()`: The same to the above.

[1]: http://www.imagemagick.org/api/magick-image.php#MagickRotateImage