[cairo-bugs] [Bug 4441] inverse transformation of line width

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 13 06:14:59 PDT 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=4441          
     

billy.biggs at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |billy.biggs at gmail.com




------- Additional Comments From billy.biggs at gmail.com  2005-09-13 06:14 -------
If you save and restore around the path creation, you will create a scaled path
but draw with the current line width.

cairo_set_line_width(cr, 1);  // one pixel  wide line

cairo_save(cr);
cairo_scale(cr, width, height); // window dimensions in pixel
cairo_move_to(cr, 0.1, 0.1);  // a rectangle in relative dimensions
cairo_rel_line_to(cr, 0.8, 0);
cairo_rel_line_to(cr, 0, 0.8);
cairo_rel_line_to(cr, -0.8, 0);
cairo_close_path(cr);
cairo_restore(cr);          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list