Merge pull request #60 from Storykit/feature/fx

feat: MagickFxImage bindning
This commit is contained in:
Nathan Fiedler
2020-04-21 06:49:28 -07:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@ -243,6 +243,12 @@ impl MagickWand {
}
}
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()) };
MagickWand::new_from_wand(wand)
}
pub fn set_size(&self, columns: size_t, rows: size_t) -> Result<(), &'static str> {
let result = unsafe { bindings::MagickSetSize(self.wand, columns, rows) };
match result {