On 2/11/2010 9:42 PM, Pierre Y. wrote:
> Angus,
>
> Impressive ;-)
>
> Have you seen that there is a cairo_copy_path_flat API in CAIRO that
> transforms CAIRO_CURVE_TO polygons into CAIRO_LINE_TO ones ?
>
Thanks Pierre.
I was using IContext.CopyPath because initially I was passing a
PCairoPath pointer to the CairoToDoublePointArray function (instead of
an ICairoContext) and I didn't want to limit the paths to flat paths.
When I decided to pass an ICairoContext to the function, I just forgot
to change the CopyPath to CopyPathFlat.