How to draw a polygon with the Skia

933 views
Skip to first unread message

Israel Hu

unread,
Sep 25, 2009, 9:22:09 AM9/25/09
to skia-discuss
As I know,the SkCanvas class have methods to draw polylines, draw
rectangle, draw arc and oval,
but how to draw a polygon using the Skia?
Thanks.

Mike Reed

unread,
Sep 25, 2009, 9:32:54 AM9/25/09
to skia-d...@googlegroups.com
drawPath()

SkPath is the general purpose geometry class. Create a path and then
add your contours to it. Then call drawPath(path, paint);
Reply all
Reply to author
Forward
0 new messages