Add AlphaChannelOption type

This commit is contained in:
5ohue
2024-05-11 13:37:55 +03:00
parent 02ae78eba8
commit 092acaa5d0
5 changed files with 58 additions and 4 deletions

View File

@ -258,7 +258,7 @@ macro_rules! mutations {
$(
$(#[$attr])*
pub fn $fun(&self $(, $arg: $ty)*) -> Result<()> {
match unsafe { bindings::$c_fun(self.wand $(, $arg)*) } {
match unsafe { bindings::$c_fun(self.wand $(, $arg.into())*) } {
bindings::MagickBooleanType_MagickTrue => Ok(()),
_ => Err(MagickError(concat!(stringify!($c_fun), " invocation failed")))
}