Re: Clip documentation and behaviour

Guillermo Rodriguez <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CABDcava6hH8HALvsAhtCzKM6wQS4R0dKsuccGPooJ+ZcVHX7-g@mail.gmail.com>
Hi,

El domingo, 11 de junio de 2017, Maximilian Heinzler <[email protected]>
escribió:

> Hi all,
>
> while going through the clip functions I noticed two things:
>
> 1. The documentation for cairo_clip() says: "Calling cairo_clip() can
> only make the clip region smaller, never larger".
>
> Isn't that wrong? If I call cairo_clip() twice with different paths
> the clip region obviously grows.
>
> Why "obviously"? If you call cairo_clip twice with different paths, the
clip region should either get smaller or remain unchanged.


> Then also the first sentence "Establishes a new clip region by
> intersecting the current clip region with the current path" seems to
> be wrong, because intersecting the two would mean that the clip region
> can only get smaller.


Indeed. Hence the comment: "Calling cairo_clip() can only make the clip
region smaller, never larger"

Guillermo

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.