[cairo] How to draw an invisible rectangle?

Tuom Larsen tuom.larsen at gmail.com
Sun Dec 16 08:22:51 PST 2007


On Dec 16, 2007 5:07 PM, Dirk Schönberger <dirk.schoenberger at sz-online.de>
wrote:

> > Is it possible to draw a rectangle without a stroke and without a fill
> in
> Cairo? You could ask what is it good for -- to mark a bounding box of an >
> object, for example. For vector programs which provide so called Outline
> view or mode or Keyline. In another works -- I simply would not
> > stroke() or fill() them but then they will wait till the next path which
> could be stroked() or filled() -- is it possible to discard current path?
> > Thanks
>
> If I understand you correctly and you just don't want to render the
> current
> path, cairo_new_path() should delete the current path (and create a new
> empty path)
>

No, no, I apologize -- that last line was misleading.
I want it to "render", so it appears in PDF or SVG, like <path d="..."
fill=none stroke=none /> -- it's there but you just can't see it :).


>
> Regards
> Dirk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20071216/2d861156/attachment.html 


More information about the cairo mailing list