[cairo] rectangle with one pixel width
Kalle Vahlman
kalle.vahlman at gmail.com
Wed Jan 9 03:20:30 PST 2008
2008/1/9, zaheer ahmad <zaheer.mot at gmail.com>:
> hi,
> iam drawing a rectangle using cairo, but it always takes two pixels. Is
> there a way to draw the rectangle that takes exactly one pixel.
Usually those are described as "lines" ;)
> i tried to change the line width (cairo_set_line_width(cr, 0.03) but this
> only seems to fade the color and not change the number of pixels taken by
> the rectangle.
...but I suppose you'll find the reasons and suggested way to achieve it here:
http://cairographics.org/FAQ/#sharp_lines
--
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
More information about the cairo
mailing list