@ -241,7 +241,7 @@ impl MagickWand {
|
|||||||
|
|
||||||
/// Rotate the currently selected image by the given number of degrees,
|
/// Rotate the currently selected image by the given number of degrees,
|
||||||
/// filling any empty space with the background color of a given PixelWand
|
/// filling any empty space with the background color of a given PixelWand
|
||||||
pub fn rotate_image(&mut self, background: &PixelWand, degrees: f64) -> Result<(), &'static str> {
|
pub fn rotate_image(&self, background: &PixelWand, degrees: f64) -> Result<(), &'static str> {
|
||||||
match unsafe { bindings::MagickRotateImage(self.wand, background.wand, degrees) } {
|
match unsafe { bindings::MagickRotateImage(self.wand, background.wand, degrees) } {
|
||||||
bindings::MagickBooleanType::MagickTrue => Ok(()),
|
bindings::MagickBooleanType::MagickTrue => Ok(()),
|
||||||
_ => Err("failed to rotate image")
|
_ => Err("failed to rotate image")
|
||||||
|
|||||||
Reference in New Issue
Block a user