首先了解几个概念px,dip(dp),sp,dpi,分辨率等1.px (pixels)像素 –是像素,就是屏幕上实际的像素点单位。dip或dp (device independent pixels)设备独立像素, 与设备屏幕有关。sp (scaled pixels — best for text s...
分类:
移动开发 时间:
2015-05-11 19:59:11
阅读次数:
141
DescriptionRest at the sea is wonderful! However, programmer Pasha became awfully bored of lying on a beach in Turkey; so bored that he decided to cou...
分类:
其他好文 时间:
2015-05-09 20:18:45
阅读次数:
145
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
Android将一张Bitmap处理成圆形是十分常见的,经常见的场合就是作为用户头像,我们可以Canvas来辅助实现这个功能,代码如下 1 public static Bitmap toRoundCorner(Bitmap bitmap, int pixels) { 2 Bitmap...
分类:
移动开发 时间:
2015-04-21 19:57:44
阅读次数:
137
题意:给出一串数字,给出k次交换,每次交换只能交换相邻的两个数,问最多经过k次交换,能够得到的最大的一串数字从第一个数字往后找k个位置,找出最大的,往前面交换有思路,可是没有写出代码来---sad 1 #include 2 #include 3 #include 4 #include ...
分类:
其他好文 时间:
2015-04-20 23:57:47
阅读次数:
218
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
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