Merge pull request #89 from davidwilemski/strip
Add binding for MagickStripImage
This commit is contained in:
@ -374,6 +374,14 @@ impl MagickWand {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn strip_image(&self) -> Result<()> {
|
||||
let result = unsafe { bindings::MagickStripImage(self.wand) };
|
||||
match result {
|
||||
bindings::MagickBooleanType_MagickTrue => Ok(()),
|
||||
_ => Err(MagickError("failed to strip image")),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flip_image(&self) -> Result<()> {
|
||||
let result = unsafe { bindings::MagickFlipImage(self.wand) };
|
||||
match result {
|
||||
|
||||
Reference in New Issue
Block a user