1 Android手机目前常见的分辨率1.1 手机常见分辨率:分辨率对应DPI"HVGA mdpi"480*320"WVGA hdpi ""FWVGA hdpi ""QHD hdpi ""720P xhdpi""1080P xxhdpi "4:3VGA 640*480 (Video Graphics...
分类:
移动开发 时间:
2014-08-28 08:27:59
阅读次数:
242
http://acm.hdu.edu.cn/showproblem.php?pid=1171Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, ma...
分类:
其他好文 时间:
2014-08-27 21:49:38
阅读次数:
268
1、导入POI的jar包新建一个项目,在根目录在新建一个lib文件夹,将jar包复制粘贴到lib文件夹后,右键将其添加到项目的build path中,最后的结果如图所示:2、编写java类,新建一个实体类例如(电脑、电视)public Computer{ private int id; priva....
分类:
其他好文 时间:
2014-08-27 16:30:27
阅读次数:
157
转载自:http://blog.csdn.net/jie_qing/article/details/7259520在学习Graphics中遇到位图(Bitmap)中getPixels()方法,对该方法的用法大体理解,但对其中的stride参数却不明白具体的用法以及用意,经过一番折腾后,有些明了,现记...
分类:
其他好文 时间:
2014-08-27 14:37:28
阅读次数:
316
Desc在cApplication的构造函数中初始化mDragLook为false,否则就能自由移动摄像机了。Graphics.h/*************************************************** ©2014 Pf_D. All rights reserv...
分类:
其他好文 时间:
2014-08-27 14:22:07
阅读次数:
246
1.绘制箭头的三种方式
// Drawing code
// CGContextRef con = UIGraphicsGetCurrentContext();
// //draw a black(by default) vertical line,the shaft of the arrow 箭杆
// CGContextMoveToPoint(con, 100, 10...
// view的完整显示过程// 1. view.layer会准备一个Layer Graphics Contex(图层类型的上下文)// 2.调用view.layer.delegate(view)的drawLayer:inContext:,并传入刚才准备好的上下文// 3. view的drawLay...
分类:
其他好文 时间:
2014-08-27 00:10:36
阅读次数:
330
首先了解一下CGContextRef:An opaque type that represents a Quartz 2D drawing environment.Graphics Context是图形上下文,可以将其理解为一块画布,我们可以在上面进行绘画操作,绘制完成后,将画布放到我们的view中...
分类:
移动开发 时间:
2014-08-26 17:08:26
阅读次数:
499
Non-blocking algorithm
In computer science, a non-blocking algorithm ensures that threads competing
for a shared resource do not have their execution indefinitely
postponed by mutual ex...
分类:
其他好文 时间:
2014-08-26 09:52:09
阅读次数:
270
Problem Description
In mathematics and computer science, an algorithm describes a set of procedures or instructions that define a procedure. The term has become increasing popular since the adven...
分类:
其他好文 时间:
2014-08-25 22:54:25
阅读次数:
408