Adding binding for MagickAddImage
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.swp
|
||||
*.pyc
|
||||
Cargo.lock
|
||||
rust-bindgen
|
||||
|
||||
@ -66,6 +66,13 @@ impl MagickWand {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn add_image(&mut self, other_wand: &MagickWand) -> Result<(), &'static str> {
|
||||
match unsafe { bindings::MagickAddImage(self.wand, other_wand.wand) } {
|
||||
bindings::MagickBooleanType::MagickTrue => Ok(()),
|
||||
_ => Err("unable to add images from another wand")
|
||||
}
|
||||
}
|
||||
|
||||
pub fn append_all(&mut self, stack: bool) -> MagickWand {
|
||||
unsafe { bindings::MagickResetIterator(self.wand) };
|
||||
MagickWand {
|
||||
|
||||
Reference in New Issue
Block a user