Expand description
§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/
Functions§
- blur_
image_ surface - Blur a cairo image surface