How to draw a simply dot in cairo?



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]