[cairo] shadow around a rectangle

Gerdus van Zyl gerdusvanzyl at gmail.com
Fri Nov 30 04:23:36 PST 2007


Not possible since cairo lacks a working blur filter currently. You
can however fake it by drawing consecutively smaller rectangles in the
color of choice with varying opacity by using paint_with_alpha or
using a gradient that fades out.

~Gerdus

On Nov 30, 2007 9:14 AM, zaheer ahmad <zaheer.mot at gmail.com> wrote:
> hi,
> i would like to draw a shadow around a rectangle using cairo. any inputs on
> how this could be done.
>
> thanks,
> zaheer
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list