日本国旗
来源:互联网 发布:php ajax post 编辑:程序博客网 时间:2024/04/27 21:01
#import "drawpicture.h"
@implementation drawpicture
- (void)drawRect:(CGRect)rect {
CGContextRef context =UIGraphicsGetCurrentContext();
CGContextMoveToPoint(context,100, 100);
// CGContextAddLineToPoint(context, 100, 100);
// CGContextAddRect(context,CGRectMake(100, 100, 200, 100));
CGContextAddEllipseInRect(context,CGRectMake(125,125, 50, 50));
//画边框
// CGContextStrokePath(context);
//只填充
// CGContextFillPath(context);
//设置填充色
// [[UIColor redColor] setFill];
[[UIColorcolorWithRed:1green:0blue:0alpha:0.5]setFill];
//设置边框颜色
// [[UIColor blueColor] setStroke];
// [[UIColor greenColor] set];
//EVEN-ODD,奇偶规则填充
CGContextDrawPath(context,kCGPathEOFillStroke);
// CGContextMoveToPoint(context, 200, 200);
// CGContextAddArc(context, 100, 200, 100, 0, M_PI_2, 0);
// CGContextAddLineToPoint(context, 0, 100);
//control point
//CGContextAddCurveToPoint(context, 50, 0, 50, 200, 100, 100);
// CGContextAddQuadCurveToPoint(context, 150, 0, 200, 100);
CGContextAddRect(context,CGRectMake(100,100, 150, 100));
CGContextStrokePath(context);
}
@end
- 日本国旗
- 小日本国旗
- 日本多家网站被黑:覆盖中国国旗
- 日本......
- 日本
- 路国旗
- 国旗面前
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- 荷兰国旗
- linux内核【进程】
- hdu2795 线段树
- 耳机接口pin脚定义
- python学习二
- android 依赖工程 Android 工程引用其他Library工程
- 日本国旗
- 递归和非递归的方法往二叉排序树中插入新的节点
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- css属性扫一遍吧---------background。
- hdu 2795 Billboard
- 对hashcode()方法的理解
- WPF的Invoke()和BeginInvoke()
- Linux标准I/O(一)
- 结构之美:单链表的初始化、创建与遍历