Xamarin 画圆
2016-06-01 19:36
295 查看
//// 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();
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();
相关文章推荐
- 测试特制微型气泵在高温环境下的稳定性
- 一台Linux上搭建两个tomcat
- 安卓学习过程
- fragment布局
- DOM-----显示缓冲效果
- android坐标
- 大数
- 微型真空泵VJY6639与VQY6538产品的比较
- 关于mtk GPIO口的定制
- CPU测评
- IntelliJ IDEA的使用配置记录
- IOS--如何在UILabel上显示图片
- Duilib 第一课 2016年6月一日
- bzoj2555
- 2016-06-01错误日志-部署
- 微型抽打气泵FNY较FAY的优势
- 进程互斥
- 微型泵输出流量脉动性研究
- An introduction to the credit scheduler in Xen
- Leetcode 43. Multiply Strings