pub type FlatImage = Image<Layers<AnyChannels<FlatSamples>>>;
Expand description
This image type contains the most common exr features and can represent almost any plain image. Does not contain resolution levels. Does not support deep data.
Aliased Type§
struct FlatImage {
pub attributes: ImageAttributes,
pub layer_data: SmallVec<[Layer<AnyChannels<FlatSamples>>; 2]>,
}
Fields§
§attributes: ImageAttributes
Attributes 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: SmallVec<[Layer<AnyChannels<FlatSamples>>; 2]>
The layers contained in the image file.
Can be either a single Layer
or a list of layers.
Implementations
Source§impl<'s, InnerLayers> Image<InnerLayers>where
InnerLayers: WritableLayers<'s> + 's,
impl<'s, InnerLayers> Image<InnerLayers>where
InnerLayers: WritableLayers<'s> + 's,
Sourcepub 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.
Source§impl<'s, LayerData> Image<LayerData>where
LayerData: WritableLayers<'s> + 's,
impl<'s, LayerData> Image<LayerData>where
LayerData: WritableLayers<'s> + 's,
Sourcepub fn new(image_attributes: ImageAttributes, layer_data: LayerData) -> Self
pub fn new(image_attributes: ImageAttributes, layer_data: LayerData) -> Self
Create an image with one or multiple layers. The layer can be a Layer
, or Layers
small vector, or Vec<Layer>
or &[Layer]
.
Source§impl<'s, Channels> Image<Layers<Channels>>where
Channels: WritableChannels<'s> + 's,
impl<'s, Channels> Image<Layers<Channels>>where
Channels: WritableChannels<'s> + 's,
Sourcepub 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).