#cairo #blur #graphics

cairo-blur

Apply a Gaussian blur to your Cairo image surface

2 releases

0.1.1 Aug 8, 2023
0.1.0 Aug 7, 2023

#778 in Graphics APIs

MIT license

7KB
104 lines

cairo-blur

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/

Dependencies

~0.8–1.6MB
~38K SLoC