diff --git a/src/wand/magick.rs b/src/wand/magick.rs index 56b8567..d8e7123 100644 --- a/src/wand/magick.rs +++ b/src/wand/magick.rs @@ -293,9 +293,9 @@ impl MagickWand { pub fn clut_image( &self, clut_wand: &MagickWand, - method: bindings::PixelInterpolateMethod, + method: PixelInterpolateMethod, ) -> Result<()> { - let result = unsafe { bindings::MagickClutImage(self.wand, clut_wand.wand, method) }; + let result = unsafe { bindings::MagickClutImage(self.wand, clut_wand.wand, method.into()) }; match result { bindings::MagickBooleanType_MagickTrue => Ok(()), _ => Err(MagickError( diff --git a/tests/lib.rs b/tests/lib.rs index 2e2440d..5d01510 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -364,7 +364,7 @@ fn test_clut_image() { assert!(wand .clut_image( &gradient, - bindings::PixelInterpolateMethod_BilinearInterpolatePixel + magick_rust::PixelInterpolateMethod::Bilinear ) .is_ok()); }