Crate pixeli

Source
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.
GrayAlpha
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.
ContiguousPixel
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.
FromComponentCommon
Convert between pixel component types using common component ranges.
FromPixelCommon
Convert between pixel types using the most common conversion method, this conversion can be lossy, such as from Rgb to Gray.
Pixel
A Pixel made up of a compile-time known number of contiguously stored Ts.
PixelComponent
A trait for all the required super-traits for a pixel component type.
WithAlpha
A pixel which can gain an alpha component.
WithoutAlpha
A pixel which can lose its alpha component.