Crates.io | cairo-blur |
lib.rs | cairo-blur |
version | 0.1.1 |
source | src |
created_at | 2023-08-07 12:06:43.668442 |
updated_at | 2023-08-08 22:53:02.295134 |
description | Apply a Gaussian blur to your Cairo image surface |
homepage | |
repository | https://github.com/MoAlyousef/cairo-blur |
max_upload_size | |
id | 937886 |
size | 7,545 |
Apply a Gaussian blur to your Cairo ImageSurface.
let radius = 15;
let mut surf = cairo::ImageSurface::create(Format::ARgb32, 200, 100).expect("Couldn’t create surface");
cairo_blur::blur_image_surface(&mut surf, radius);
The code in this crate is a translation of the code here: https://www.cairographics.org/cookbook/blur.c/