Expand description
PlutoFilter implementation
Re-exports§
pub use arena::ImageEditor;
Modules§
- arena
arenaprovides API using image crate to expose easy to use methods for surface API
Structs§
- Surface
- Represents a 2D image surface in RGBA32 premultiplied format.
These pixels are unpacked as:
let [r, g, b, a] = pixel.to_le_bytes();Each pixel is a 32-bit unsigned integer with channels ordered as: alpha, red, green, blue. The red, green, and blue channels are premultiplied by the alpha channel. That is, red = red * alpha / 255, and similarly for green and blue.
Enums§
- Blend
Mode - Blend modes for combining source and backdrop surfaces.
- Color
Channel - Primary use is to deserialize the u32 pixel into sub pixel as ARGB32 or RGBA32
- Composite
Operator - Compositing operators for combining source and backdrop surfaces.
- Surface
Error
Functions§
- get_
resource_ path - Helper function to find file in
resfolder in root directory