可以利用 CGMutablePathRef 创建每个不同图形,然后再一起添加到CGContext中- (void)drawRect:(CGRect)rect{ CGContextRef ctx = UIGraphicsGetCurrentContext(); //一、 画线 ...
分类:
Web程序 时间:
2015-07-02 20:48:18
阅读次数:
151
使用以下shell 脚本来计算大页配置参数,确保使用脚本实例之前的数据已经开始,如果数据库的版本号11g,确认是否使用自己主动的内存管理(AMM)+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
分类:
其他好文 时间:
2015-07-02 09:54:52
阅读次数:
171
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
UIBezierPath *path = [UI...
分类:
移动开发 时间:
2015-07-01 22:19:53
阅读次数:
259
#import "LCSView.h"
@implementation LCSView
////绘图
- (void)drawRect:(CGRect)rect
{
#if 0
//图形上下文对象
CGContextRef context = UIGraphicsGetCurrentContext();
...
分类:
移动开发 时间:
2015-06-30 18:21:10
阅读次数:
221
这里列出一种在窗口Window中画图的程序框架。。。。。。。。。。#-*- coding:utf-8 -*-from pyglet.gl import *def draw_rect(x, y, width, height): glBegin(GL_LINE_LOOP) glVertex2...
分类:
其他好文 时间:
2015-06-27 22:41:01
阅读次数:
1012
展示怎么制作动画。。。。#-*- coding:utf-8 -*-from pyglet.gl import *from pyglet import clockdef draw_rect(x, y,z,width, height,ang): glClear(GL_COLOR_BUFFER_BI...
分类:
其他好文 时间:
2015-06-27 22:35:28
阅读次数:
208
1、Rect TransformRect Transform是2D与3D图形的Transform组件对应。它用来指定用户界面系统中的大小、位置和旋转的控件PropertiesProperty:Function:Pos (X, Y and Z)相对锚点anchors的矩形枢轴pivot点的位置。Wid...
分类:
编程语言 时间:
2015-06-26 14:58:14
阅读次数:
211
MFC中窗口重绘摘自:http://blog.csdn.net/shuilan0066/article/details/5859057在刷新窗口时经常要调用重绘函数MFC提供了三个函数用于窗口重绘InvalidateRect(&Rect)Invalidate()UpdateWindow()当需要更新...
分类:
编程语言 时间:
2015-06-26 14:52:47
阅读次数:
125
排查redis做RDB时请求超时的case,介绍THP(Transparent Huge Pages)的影响...
分类:
数据库 时间:
2015-06-24 21:09:04
阅读次数:
320
<!DOCTYPEHTML>
<html>
<body>
<svgxmlns="http://www.w3.org/2000/svg"version="1.1"width="1000px"height="800px">
<rect
x="20"
y="20"
rx="20"
ry="20"
width="250"
height="100"
style="fill:red;stroke:black;stroke-width:5;fill-o..
分类:
Web程序 时间:
2015-06-19 21:45:07
阅读次数:
288