[cairo] Line widths and coordinate system transformations

Holger Berndt berndth at gmx.de
Sun Jun 8 14:51:53 PDT 2008


Hi Behdad,

>> Thanks a lot, Dirk and Simon. Having different scalings during path
>> creation and stroking of course does the trick. Awesome!
>
>So to summarize, this is what you want:
>
>cairo_save (cr);
>cairo_identity_matrix (cr);
>cairo_set_line_width (cr, line_width);
>cairo_stroke (cr);
>cairo_restore (cr);

Yes, that's one way to do it. It's indeed a very flexible way to deal
with drawing.

Holger


More information about the cairo mailing list