- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(context, 0, 0); CGContextAddRect(c...
分类:
其他好文 时间:
2014-09-23 00:52:13
阅读次数:
223
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); //起点移动到(0,0) CGContextMoveToPoint(context, 0, 0); //画线到(100,...
分类:
其他好文 时间:
2014-09-22 22:22:23
阅读次数:
208
/** * 将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
1.页面文档滚动条 获取和判断 //1.获取浏览器可视区域的高度 $(window).resize(function () { //使用js //var clientHeight = scroll...
分类:
其他好文 时间:
2014-09-22 19:11:23
阅读次数:
220
【功能说明】该方法用于在画布上绘制圆角矩形,通过指定RectF对象以及圆角半径来实现。该方法是绘制圆角矩形的主要方法,同时也可以通过设置画笔的空心效果来绘制空心的圆角矩形。【基本语法】public void drawRoundRect (RectF rect, float rx, float ry,...
分类:
其他好文 时间:
2014-09-22 17:15:32
阅读次数:
349
1、首先导入jQuery插件。2、js代码:$(window).scroll(function () { if($(window).scrollTop()>=100) { $(".backtop").fadeIn(); }else { ...
分类:
Web程序 时间:
2014-09-22 13:01:12
阅读次数:
330
为了加强鼠标响应事件,Android提供了GestureDetector手势识别类。通过GestureDetector.OnGestureListener来获取当前被触发的操作手势(Single Tap Up、Show Press、Long Press、Scroll、Down、Fling),具体包括...
分类:
其他好文 时间:
2014-09-22 12:14:52
阅读次数:
250
基本方法: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
一、前景与背景background-color: 背景色,定义背景的颜色background-image:url() 定义背景图片background-attachment:fixed/scroll 定义背景图片随滚动轴的移动方式background-repeat:repeat/no-repeat/...
分类:
Web程序 时间:
2014-09-21 19:45:31
阅读次数:
270
[Windows编程基础之Rect]
作者:Tocy时间:2014-09-20
整理本文的最初目的是理清IsRectEmpty和IsRectNull函数的区别,但是在浏览msdn时发现有很多关于Rect函数都没有用过,因此整理下,以作记录并加深记忆。
Rect,矩形区域,通常我们会使用四个坐标表示,...