[go: up one dir, main page]

image 0.24.9

Imaging library. Provides basic image processing and encoders/decoders for common image formats.
Documentation
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();
}