[cairo] Rectangle Border Widths

Chris Wilson chris at chris-wilson.co.uk
Tue Apr 10 07:53:55 PDT 2012

On Tue, 10 Apr 2012 10:40:23 -0400 (EDT), robertk54 at aol.com wrote:
> Is it possible to render rectangles whose vertical lines are different in width from the horizontal lines?

cairo_rectangle(cr, x, y, width, height);
cairo_scale(cr, stroke_width, stroke_height);
cairo_set_line_width(cr, 1);

Have fun with Cairo!

Chris Wilson, Intel Open Source Technology Centre

More information about the cairo mailing list