Re: How to draw a simply dot in cairo?
- From: Allen <allenfans gmail com>
- To: Dancefire <dancefire gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: How to draw a simply dot in cairo?
- Date: Sat, 9 May 2009 17:22:01 +1000
think he means he used something like this:
cairo_move_to(cr,x,y);
cairo_arc (cr, x, y, r, 2*M_PI);
cairo_fill (cr);
Instead of drawing a cricle with cairo_arc first then cairo_filling it, does cairo provide any alternatives for this task?
On Fri, May 8, 2009 at 12:43 PM, Dancefire
<dancefire gmail com> wrote:
Hi,
I know how to draw line, arc(circle) in cairo. however, I cannot find the efficient way to draw a simple round dot. I tried arc(), it works, however, it is very slow. I need draw thousands of the small dot with different radius. arc() is a little bit slow to do that.
I also tried draw a rectangle with round cap, round join and 0 width and height. It works and seems faster than arc(). But I may in the wrong track.
Could anyone point me out, how to draw a lot of dot with different radius efficiently? Thanks.
--
Tao Wang
Microsoft Certified Technology Specialist
CCNA
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]