Add FilterType type

This commit is contained in:
5ohue
2024-05-09 21:48:39 +03:00
parent cfbdbd4c0e
commit 4b32edb17e
5 changed files with 54 additions and 6 deletions

View File

@ -54,7 +54,7 @@ fn test_resize_image() {
1 => 1,
height => height / 2,
};
wand.resize_image(halfwidth, halfheight, bindings::FilterType_LanczosFilter);
wand.resize_image(halfwidth, halfheight, magick_rust::FilterType::Lanczos);
assert_eq!(256, wand.get_image_width());
assert_eq!(192, wand.get_image_height());
}