Re: Cairo: how do I use $cr->append_path to draw a path?



(Grmbl. Torsten, can you disregard the reply address on the private
reply, as I used the wrong account to send it from? You *can* use the
above address).

On Fri, 2011-07-15 at 14:02 +0000, Torsten Schoenfeld wrote:
On 15.07.2011 06:47, Mart van de Wege wrote:
However, according to the documentation, I should also be able to build
a Cairo::Path object and use $cr->append_path to do the same thing. Yet,
when I try, it doesn't work.

Judging from the code, this conversion direction is not implemented yet, 
and the documentation neglects to mention it.  (Irregardless of the path 
you input, a NULL is passed to libcairo.) 

Aha.

That explains why the output of dump($path) in the alternate codepath
shows a data structure with more members than the array given in the
documenation.

Not often that the documentation outstrips the code. Usually it's the
other way around.

 I think I have code for this 
in a local branch at home.  I'll try to polish it and post here soon.

Thanks.

Don't hurry it up though. I can refactor my code easily enough, so
anytime is fine.

Regards,

Mart






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]