[cairo] How to blur one of the r, g or b channels into the alpha channel?

Leon Woestenberg leon.woestenberg at gmail.com
Mon Nov 12 12:37:48 PST 2007


Hello,

I would like to blur one of the r, g or b channels into the alpha channel.

for each x,y: alpha(x,y) = blur3(x,y)
where blur3 is a 3x3 blurring filter

What's the most efficient way to achieve this with cairo?

My application is that I would like to "feather" a thick stroke.

Regards,
-- 
Leon


More information about the cairo mailing list