Merge pull request #62 from Storykit/revert-set-image-gray

Revert "feat: set_image_gray"
This commit is contained in:
Nathan Fiedler
2020-04-22 07:54:51 -07:00
committed by GitHub

View File

@ -743,14 +743,6 @@ impl MagickWand {
Ok(bytes)
}
pub fn set_image_gray (&self) -> Result<(), &'static str> {
let result = unsafe { bindings::SetImageGray(self.wand) };
match result {
MagickBooleanType_MagickTrue => Ok(()),
_ => Err("Couldn't set image to gray")
}
}
mutations!(
/// Set the image colorspace, transforming (unlike `set_image_colorspace`) image data in
/// the process.