Module write

Source
Expand description

Write an exr image to a file.

First, call my_image.write(). The resulting value can be customized, like this:

    use exr::prelude::*;

    my_image.write()
           .on_progress(|progress| println!("progress: {:.1}", progress*100.0))
           .to_file("image.exr").unwrap();

Modules§

channels
How to read arbitrary channels and rgb channels.
layers
How to write either a single or a list of layers.
samples
How to write samples (a grid of f32, f16 or u32 values).

Structs§

WriteImageWithOptions
A temporary writer which can be configured and used to write an image to a file.

Traits§

WritableImage
Enables an image to be written to a file. Call image.write() where this trait is implemented.

Functions§

write_rgb_file
An oversimplified function for “just write the damn file already” use cases. Have a look at the examples to see how you can write an image with more flexibility (it’s not that hard). Use write_rgb_file if you do not need an alpha channel.
write_rgba_file
An oversimplified function for “just write the damn file already” use cases. Have a look at the examples to see how you can write an image with more flexibility (it’s not that hard). Use write_rgb_file if you do not need an alpha channel.