Module traits
Import this specifically if you want to be explicit but still use the extension traits.
Structs
- CroppedChannels A smaller window into an existing pixel storage
- ReadImage Specify whether to read the image in parallel, whether to use pedantic error handling, and a callback for the reading progress.
Enums
-
CropResult
Cropping an image fails if the image is fully transparent.
Use
or_crop_to_1x1_if_emptyoror_none_if_emptyto obtain a normal image again.
Traits
-
ApplyCroppedView
Realize a cropped view of the original data,
by actually removing the unwanted original pixels,
reducing the memory consumption.
Currently not supported for
SpecificChannels. - Crop Crop some pixels ways when specifying a smaller rectangle
- CropWhere Crop away unwanted pixels from the border if they match the specified rule.
-
GetPixel
Define how to get a pixel from your custom pixel storage.
Can be a closure of type [
Sync + Fn(Vec2<usize>) -> YourPixel]. - InspectSample Inspect the pixels in this image to determine where to crop some away
-
ReadChannels
A template that creates a
ChannelsReaderonce for all channels per layer. -
ReadLayers
A template that creates a
LayerReaderfor each layer in the file. -
ReadSamples
A template that creates a new
SampleReaderfor each channel in each layer. - ReadSpecificChannel Can be attached one more channel reader.
-
WritableImage
Enables an image to be written to a file. Call
image.write()where this trait is implemented.
Functions
- read Create a reader which can be used to load an exr image. Allows you to exactly specify how to load the image, for example: