Function tile
pub fn tile<I, J>(bottom: &mut I, top: &J)
Available on crate feature
dep_image
only.Expand description
Tile an image by repeating it multiple times
§Examples
use image::{RgbaImage};
let mut img = RgbaImage::new(1920, 1080);
let tile = image::open("tile.png").unwrap();
image::imageops::tile(&mut img, &tile);
img.save("tiled_wallpaper.png").unwrap();