Expand description
§Pixeli
This crate provides common pixel types and traits for working with them.
Structs§
- Abgr
- An
ABGRpixel. - Argb
- An
ARGBpixel. - Bgr
- A
BGRpixel. - Bgra
- A
BGRApixel. - Gray
- A
Grayscalepixel. - Gray
Alpha - A
Grayscale + Alphapixel. - Rgb
- An
RGBpixel. - Rgba
- An
RGBApixel.
Traits§
- AsSlice
- A helpful trait for turning the associated array types in the
Pixeltrait into a slice. - Contiguous
Pixel - An trait for converting to pixel from a slice.
- Enlargeable
- An
Enlargable::Largervalue should be enough to calculate the sum (average) of a few hundred or thousand Enlargeable values. - From
Component Common - Convert between pixel component types using common component ranges.
- From
Pixel Common - Convert between pixel types using the most common conversion method, this conversion can be
lossy, such as from
RgbtoGray. - Pixel
- A Pixel made up of a compile-time known number of contiguously stored
Ts. - Pixel
Component - A trait for all the required super-traits for a pixel component type.
- With
Alpha - A pixel which can gain an alpha component.
- Without
Alpha - A pixel which can lose its alpha component.