Xamarin 画圆

//// Oval Drawing   画园

var ovalPath = UIBezierPath.FromOval(new CGRect(51.0f, 66.0f, 37.0f, 36.0f));

UIColor.Gray.SetFill();

ovalPath.Fill();



//// Star Drawing  画星星

UIBezierPath starPath = new UIBezierPath();

starPath.MoveTo(new CGPoint(108.0f, 68.25f));

starPath.AddLineTo(new CGPoint(113.38f, 76.35f));

starPath.AddLineTo(new CGPoint(122.5f, 79.13f));

starPath.AddLineTo(new CGPoint(116.7f, 86.92f));

starPath.AddLineTo(new CGPoint(116.96f, 96.74f));

starPath.AddLineTo(new CGPoint(108.0f, 93.45f));

starPath.AddLineTo(new CGPoint(99.04f, 96.74f));

starPath.AddLineTo(new CGPoint(99.3f, 86.92f));

starPath.AddLineTo(new CGPoint(93.5f, 79.13f));

starPath.AddLineTo(new CGPoint(102.62f, 76.35f));

starPath.ClosePath();

UIColor.Gray.SetFill();

starPath.Fill();

阅读更多
个人分类: 笔记
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭