dip: Device Independent Pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA推荐使用这个,不依赖像素。px: pixels(像素). 不同设备显示效果相同,一般我们HVGA代表320x480像素,这个用的比...
分类:
其他好文 时间:
2015-05-07 20:27:54
阅读次数:
132
DescriptionFarmer John purchased satellite photos of W x H pixels of his farm (1 2 #include 3 #include 4 #include 5 #include 6 7 using namespace...
分类:
其他好文 时间:
2015-05-06 22:23:14
阅读次数:
150
1.常见的单位 dip, dp, px, sp之间的区别:dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。px: pixels(像素). 不同设备显示...
分类:
Web程序 时间:
2015-05-06 14:40:48
阅读次数:
988
名词解释:
像素:像素是指基本原色素及其灰度的基本编码。[1] 像素是构成数码影像的基本单元,通常以像素每英寸PPI(pixels per inch)为单位来表示影像分辨率的大小。
像素位深度:每个像素所用的位数(bit),像素位深度决定了彩色图像的每个像素可能有的颜色数,或者确定灰度图像的每个像素可能有的灰度级数。
IplImage各项结构属性说明:(源代码在opencv2/core/types_...
分类:
其他好文 时间:
2015-05-04 18:04:28
阅读次数:
209
1.fragment的使用;
2.HttpPost服务器端与客户端交互;
3.Json数据上传和解析;
4.服务端图片加载到本地的处理方法;
5.GridView横向单行滑动;
6.GridView选中;
7.定制Listview;
8.style,dimens,drawable,theme的使用。...
分类:
移动开发 时间:
2015-04-30 16:10:39
阅读次数:
179
Android将一张Bitmap处理成圆形是十分常见的,经常见的场合就是作为用户头像,我们可以Canvas来辅助实现这个功能,代码如下 1 public static Bitmap toRoundCorner(Bitmap bitmap, int pixels) { 2 Bitmap...
分类:
移动开发 时间:
2015-04-21 19:57:44
阅读次数:
137
DescriptionFarmer John purchased satellite photos of W x H pixels of his farm (1 <= W <= 80, 1 <= H <= 1000) and wishes to determine the largest ‘contiguous’ (connected) pasture. Pastures are contiguou...
分类:
其他好文 时间:
2015-04-20 14:52:10
阅读次数:
172
R 文件被干掉了,
是因为在合并代码的时候, 出现的.orig.xml 文件, 是在代码合并的问题,没有合并出现的文件的附件。
解决方案:
删除 .orig.xml 文件就可以了!...
分类:
其他好文 时间:
2015-04-20 13:15:54
阅读次数:
130
The programmer specifies the position and the size of each widget in pixels. When you use absolute positioning, we have to understand the following li...
分类:
其他好文 时间:
2015-04-17 19:56:23
阅读次数:
184
dp = dip : device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。 px: pixels(像素). 不同设备显示效果相同,...
分类:
其他好文 时间:
2015-04-17 11:55:27
阅读次数:
131