| Crates.io | imgfx |
| lib.rs | imgfx |
| version | 0.3.3 |
| created_at | 2024-12-03 13:42:30.819719+00 |
| updated_at | 2025-09-06 16:08:20.753451+00 |
| description | Image filtering and modulating with bitwise, arithmetic, and logical operations. |
| homepage | |
| repository | https://github.com/Echinoidea/imgfx-crate |
| max_upload_size | |
| id | 1469993 |
| size | 79,076 |
Provides configurable and fast blend modes for images and some other fun image operations like bloom and pixel sorting.
Functions:
All blend functions support operand reordering, allowing precise control over how the image's color channels are processed. Operand reordering lets you redefine how the source image's R, G, and B channels are mapped during the operation.
Each function accepts an image::DynamicImage and returns an image::RgbaImage.
use imgfx::{add};
let img = image::open(path).expect("Failed to open image.");
// Add each pixel's color, mapped as R R B and FF0000.
let output = add(img, ["r".to_string(), "r".to_string(), "b".to_string()], None, RgbColor(255, 0, 0))