Add more PixelInterpolateMethod in API
This commit is contained in:
@ -293,9 +293,9 @@ impl MagickWand {
|
|||||||
pub fn clut_image(
|
pub fn clut_image(
|
||||||
&self,
|
&self,
|
||||||
clut_wand: &MagickWand,
|
clut_wand: &MagickWand,
|
||||||
method: bindings::PixelInterpolateMethod,
|
method: PixelInterpolateMethod,
|
||||||
) -> Result<()> {
|
) -> 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 {
|
match result {
|
||||||
bindings::MagickBooleanType_MagickTrue => Ok(()),
|
bindings::MagickBooleanType_MagickTrue => Ok(()),
|
||||||
_ => Err(MagickError(
|
_ => Err(MagickError(
|
||||||
|
|||||||
@ -364,7 +364,7 @@ fn test_clut_image() {
|
|||||||
assert!(wand
|
assert!(wand
|
||||||
.clut_image(
|
.clut_image(
|
||||||
&gradient,
|
&gradient,
|
||||||
bindings::PixelInterpolateMethod_BilinearInterpolatePixel
|
magick_rust::PixelInterpolateMethod::Bilinear
|
||||||
)
|
)
|
||||||
.is_ok());
|
.is_ok());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user