[cairo] How to draw an invisible rectangle?

Baz brian.ewins at gmail.com
Sun Dec 16 10:27:48 PST 2007


On Dec 16, 2007 5:57 PM, Tuom Larsen <tuom.larsen at gmail.com> wrote:
>
>
>
> On Dec 16, 2007 6:52 PM, Dirk Schönberger <dirk.schoenberger at sz-online.de>
> wrote:
> >
> >
> > >> The most obvious way to do this would be to set a source surface to
> > "NULL",
> > >> or to a special Null-Surface. The former variant may lead to unexpected
> > >> behaviour, because NULL may be treated as an invalid value.
> >
> > > Um, what is Null-Surface? How? Can't find it in API reference.
> > > I'm running pycairo 1.2.6, if that make things a bit cleaner.
> >
> > I don't think a Null-Surface exists yet ;)
> > It is just the thing which I feel it should be added to implement your
> > feature.
> >
> > Regards
> > Dirk
>
>
> Or:
> stroke(None)
>
> Back to my original question, is this even possible?

what's wrong with
cairo_set_source_rgba (cr, 0, 0, 0, 0);
cairo_fill (cr);

which should emit "fill: rgb(0,0,0); fill-opacity: 0" instead of
"fill: none". The path will be transparent but used for flow
calculations.

>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list