1 2 3 4 5 6 7 8 9
use image::RgbaImage; fn main() { let mut img = RgbaImage::new(1920, 1080); let tile = image::open("examples/scaleup/tinycross.png").unwrap(); image::imageops::tile(&mut img, &tile); img.save("tiled_wallpaper.png").unwrap(); }