[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] How to draw an invisible rectangle?
From:       Dirk_Schönberger <dirk.schoenberger () sz-online ! de>
Date:       2007-12-16 17:29:33
Message-ID: 03d401c84009$3c513f20$14b2a8c0 () rincewind
[Download RAW message or body]

> Sounds like a case for your app deciding when it should be drawn and then
only
> creating and stroking the path at that stage.

Not quite. The path should eist (e.g in a generated SVG document), it only
should not be rendered.
Think e.g of a SVG document which should be embedded in a wordprocessor
document (given the fact that such a tool actually exist).
The invisible path could be used to define the outline of the document. But
because you don't know anything about the background of the document, you
don't want to render the path, just use it for flow calculations.

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.

Regards
Dirk





_______________________________________________
cairo mailing list
cairo@cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic