Function image::imageops::tile [−][src]
pub fn tile<I, J>(bottom: &mut I, top: &J) where
I: GenericImage,
J: GenericImageView<Pixel = I::Pixel>,
Tile an image by repeating it multiple times
Examples
use image::{RgbaImage}; fn main() { 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(); }