use image::DynamicImage; #[test] fn test_img() { let mut img = image::DynamicImage::new_rgb8(10, 10); img.invert(); let img2 = img.adjust_contrast(20.0); }