[cairo] How to trim a path?

Behdad Esfahbod behdad at cs.toronto.edu
Tue Aug 2 04:47:38 UTC 2016


On Mon, Aug 1, 2016 at 12:54 AM, zwcloud <tmp111 at yeah.net> wrote:

> Hi there,
> For eample, here is a path (the red border is not included):
> After triming it, the path becomes:
> I need to trim the path, not the rendered picture. The path may be
> generated by arcs, curves and line segments.
> Any ideas?
>

cairo_path_extents()?


> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
>



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20160801/a23ade8e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2016-08-01_15-24-40.png
Type: image/png
Size: 890 bytes
Desc: not available
URL: <https://lists.cairographics.org/archives/cairo/attachments/20160801/a23ade8e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2016-08-01_15-24-40_.png
Type: image/png
Size: 724 bytes
Desc: not available
URL: <https://lists.cairographics.org/archives/cairo/attachments/20160801/a23ade8e/attachment-0001.png>


More information about the cairo mailing list