Expand description
§Pixeli
This crate provides common pixel types and traits for working with them.
Structs§
- Abgr
- An
ABGR
pixel. - Argb
- An
ARGB
pixel. - Bgr
- A
BGR
pixel. - Bgra
- A
BGRA
pixel. - Gray
- A
Grayscale
pixel. - Gray
Alpha - A
Grayscale + Alpha
pixel. - Rgb
- An
RGB
pixel. - Rgba
- An
RGBA
pixel.
Traits§
- AsSlice
- A helpful trait for turning the associated array types in the
Pixel
trait into a slice. - Contiguous
Pixel - An trait for converting to pixel from a slice.
- Enlargeable
- An
Enlargable::Larger
value 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
Rgb
toGray
. - Pixel
- A Pixel made up of a compile-time known number of contiguously stored
T
s. - 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.