Struct exr::image::Image [−][src]
pub struct Image<Layers> {
pub attributes: ImageAttributes,
pub layer_data: Layers,
}Expand description
The complete exr image.
Layers can be either a single Layer or Layers.
Fields
attributes: ImageAttributesAttributes that apply to the whole image file. These attributes appear in each layer of the file. Excludes technical meta data. Each layer in this image also has its own attributes.
layer_data: LayersThe layers contained in the image file.
Can be either a single Layer or a list of layers.
Implementations
Create an image with one or multiple layers. The layer can be a Layer, or Layers small vector, or Vec<Layer> or &[Layer].
pub fn from_layers(
image_attributes: ImageAttributes,
layer_data: impl Into<Layers<Channels>>
) -> Self
pub fn from_layers(
image_attributes: ImageAttributes,
layer_data: impl Into<Layers<Channels>>
) -> Self
Create an image with multiple layers. The layer can be a Vec<Layer> or Layers (a small vector).
Uses the display position and size to the channel position and size of the layer.
Uses empty attributes.
Uses empty attributes and fast compression.
Create an empty image, to be filled with layers later on. Add at least one layer to obtain a valid image.
Call with_layer(another_layer) for each layer you want to add to this image.
pub fn with_layer<NewChannels>(
self,
layer: Layer<NewChannels>
) -> Image<Recursive<InnerLayers, Layer<NewChannels>>> where
NewChannels: 's + WritableChannels<'s>,
pub fn with_layer<NewChannels>(
self,
layer: Layer<NewChannels>
) -> Image<Recursive<InnerLayers, Layer<NewChannels>>> where
NewChannels: 's + WritableChannels<'s>,
Add another layer to this image. The layer type does not have to equal the existing layers in this image.
Trait Implementations
fn validate_result(
&self,
other: &Self,
options: ValidationOptions,
location: String
) -> ValidationResult
fn validate_result(
&self,
other: &Self,
options: ValidationOptions,
location: String
) -> ValidationResult
Compare self with the other. Exceptional behaviour: Read more
Compare self with the other. Panics if not equal. Read more
Create a temporary writer which can be configured and used to write the image to a file.
Auto Trait Implementations
impl<Layers> RefUnwindSafe for Image<Layers> where
Layers: RefUnwindSafe,
impl<Layers> UnwindSafe for Image<Layers> where
Layers: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more