Add more PixelInterpolateMethod in API

This commit is contained in:
5ohue
2024-05-11 13:41:09 +03:00
parent 092acaa5d0
commit cac32a9760
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -364,7 +364,7 @@ fn test_clut_image() {
assert!(wand
.clut_image(
&gradient,
bindings::PixelInterpolateMethod_BilinearInterpolatePixel
magick_rust::PixelInterpolateMethod::Bilinear
)
.is_ok());
}