[cairo] How to make cairo_scale work?

唐博 hitiger.2008 at yahoo.com.cn
Thu Feb 2 02:03:38 PST 2012


        cairo_set_source_rgba(cr, 1.0, 1.0, 0.0, 1);
        cairo_rectangle(cr, 150, 150, 300, 300);
        cairo_fill(cr);

        cairo_scale(cr, 2, 2);
        How can make above work? I know cairo_scale() should be called before  cairo_rectangle(). Anyone help? cairo_rotate() is also like this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120202/c7644db6/attachment.htm>


More information about the cairo mailing list