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

@ -317,7 +317,7 @@ fn test_set_image_background_color() {
let mut pw = PixelWand::new();
pw.set_color("#0000FF").unwrap();
wand.set_image_background_color(&pw).unwrap();
wand.set_image_alpha_channel(bindings::AlphaChannelOption_RemoveAlphaChannel)
wand.set_image_alpha_channel(magick_rust::AlphaChannelOption::Remove)
.unwrap();
let blob = wand.write_image_blob("rgb").unwrap();
assert_eq!(0u8, blob[0]);