/** * 将UIColor变换为UIImage * **/+ (UIImage *)createImageWithColor:(UIColor *)color{ CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBe...
分类:
移动开发 时间:
2014-09-22 20:45:23
阅读次数:
198
【功能说明】该方法用于在画布上绘制圆角矩形,通过指定RectF对象以及圆角半径来实现。该方法是绘制圆角矩形的主要方法,同时也可以通过设置画笔的空心效果来绘制空心的圆角矩形。【基本语法】public void drawRoundRect (RectF rect, float rx, float ry,...
分类:
其他好文 时间:
2014-09-22 17:15:32
阅读次数:
349
基本方法:public static bool Button(Rect position, GUIContent content);public static bool Button(Rect position, string text);public static bool Button(Rect...
分类:
其他好文 时间:
2014-09-22 00:53:21
阅读次数:
365
今天,带来的是纯CSS3打造的效果--绽放的花朵。 先来看效果吧:http://webfront.verynet.cc/pc/flower.html 这是纯CSS3样式打造的效果,关键是采用了animation属性和transform属性。详细请看下面代码。 HTML结构:1 2 3 4 ...
分类:
Web程序 时间:
2014-09-22 00:06:31
阅读次数:
353
[Windows编程基础之Rect]
作者:Tocy时间:2014-09-20
整理本文的最初目的是理清IsRectEmpty和IsRectNull函数的区别,但是在浏览msdn时发现有很多关于Rect函数都没有用过,因此整理下,以作记录并加深记忆。
Rect,矩形区域,通常我们会使用四个坐标表示,...
1.BOOL EqualRect( CONST RECT *lprc1, // first rectangle CONST RECT *lprc2 // second rectangle ); 说明:判断两个矩形结构是否相同。 非零表示成功,零表示失败。会设置GetLas...
分类:
其他好文 时间:
2014-09-19 23:43:36
阅读次数:
229
3-4 计算长方形的周长和面积
Time Limit: 1000MS Memory limit: 65536K
题目描述
通过本题的练习可以掌握拷贝构造函数的定义和使用方法;
设计一个长方形类Rect,计算长方形的周长与面积。类中有私有数据成员Length(长)、Width(宽),由具有缺省参数值的构造函数对其初始化,函数原型为:Rect(double Length=0...
分类:
其他好文 时间:
2014-09-19 17:42:15
阅读次数:
191
@-moz-keyframes revolving{ 0{ -moz-transform: rotate(0deg); -webkit-transform: rotate(0deg); } 25%{ -moz-transform: r...
分类:
Web程序 时间:
2014-09-19 17:15:25
阅读次数:
788
一个解决办法 这不是一个根本解决的方法:写一个新的class,继承ListView,覆盖onFocusChanged。 @Override protected void onFocusChanged(boolean gainFocus, int direction, Rect previousl.....
分类:
移动开发 时间:
2014-09-19 15:22:55
阅读次数:
194
/* rect(x,y,width,height); width, height正负代表了从原点的绘制方向,矩形的长宽都是取得绝对值 */ // Do any additional setup after loading the view, typically from a nib.#prag...
分类:
其他好文 时间:
2014-09-19 13:39:25
阅读次数:
286