diff --git a/src/wand/magick.rs b/src/wand/magick.rs index 6ac026e..588998f 100644 --- a/src/wand/magick.rs +++ b/src/wand/magick.rs @@ -243,6 +243,14 @@ impl MagickWand { } } + pub fn hald_clut_image(&self, clut_wand: &MagickWand) -> Result<(), &'static str> { + let result = unsafe { bindings::MagickHaldClutImage(self.wand, clut_wand.wand) }; + match result { + bindings::MagickBooleanType_MagickTrue => Ok(()), + _ => Err("failed to replace colors in the image from color lookup table"), + } + } + pub fn fx(&mut self, expression: &str) -> MagickWand { let c_expression = CString::new(expression).unwrap(); let wand = unsafe { bindings::MagickFxImage(self.wand, c_expression.as_ptr()) };