Expand description
How to read arbitrary channels and rgb channels.
Structs§
- AnyChannels
Writer - A temporary writer for an arbitrary list of channels
- Sample
Writer - Write the pixels of a single channel, unconditionally. Generic over the concrete sample type (f16, f32, u32).
- Specific
Channels Writer - A temporary writer for a layer of channels, alpha being optional
Traits§
- Channels
Writer - A temporary writer for a list of channels
- GetPixel
- Define how to get a pixel from your custom pixel storage.
Can be a closure of type [
Sync + Fn(Vec2<usize>) -> YourPixel
]. - Recursive
Pixel Writer - Write pixels to a slice of bytes. The top level writer contains all the other channels,
the most inner channel is
NoneMore
. - Writable
Channels - Enables an image containing this list of channels to be written to a file.
- Writable
Channels Description - A tuple containing either
ChannelsDescription
orOption<ChannelsDescription>
entries. Use anOption
if you want to dynamically omit a single channel (probably only for roundtrip tests). The number of entries must match the number of channels.