[cairo] Obtaining two parallel paths from a single curve

Hung Nguyen Vu vuhung16plus+shape at gmail.com
Tue Jul 29 01:03:00 PDT 2008


On Tue, Jul 29, 2008 at 4:54 PM, archee at 126 <archee at 126.com> wrote:
> Thank you! I think my question is more related to the topic of "parallet curve" and
> the following links give out the solution:
>
> http://xahlee.org/SpecialPlaneCurves_dir/Parallel_dir/parallel.html
> and
> http://en.wikipedia.org/wiki/Parallel_curve
>
Cairo cannot do the math for you. The term " parallel curve" here has
a different meaning.
IMO, you have to pre-compute the curves yourself and draw it.

>> On Tue, Jul 29, 2008 at 3:49 PM, archee at 126 <archee at 126.com> wrote:
>>> How to obtain two parallel paths from a single curve?
>>> Say, these two parallel paths are N pixels away from each other.
>> I am not sure but you can take a look at cairo's transformation tutorial,
>> that is, copy it with a transformation matrix.
>> http://cairographics.org/tutorial/#L1transforms
>>
>>
-- 
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
vuhung16plus{remove}@gmail.dot.com , YIM: vuhung16 , Skype: vuhung16dg
Japan through an eye of a gaijin:
http://www.flickr.com/photos/vuhung/tags/fav/


More information about the cairo mailing list