有必要了解的 Android中常见的单位 dip, dp, px, sp之间的区别:dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。px: pixel...
分类:
移动开发 时间:
2014-07-30 09:47:43
阅读次数:
443
【Stencil】 The stencil buffer can be used as a general purpose per pixel mask for saving or discarding pixels. The stencil buffer is usually an 8 bit.....
分类:
其他好文 时间:
2014-07-26 16:51:21
阅读次数:
267
【Fog】 Fog parameters are controlled with Fog command. Fogging blends the color of the generated pixels down towards a constant color based on dist...
分类:
其他好文 时间:
2014-07-26 14:57:00
阅读次数:
250
Counting the Pixels with Histograms
分类:
其他好文 时间:
2014-07-22 23:14:32
阅读次数:
283
1.dp(dip):不同设备有不同的显示效果,这个和设备硬件有关系,一般我们为了支持WVGA,HVGA和QVGA对剑使用这个,它是不依赖像素的2.px:pixels(像素),不同设备显示效果相同,一般我们HVGA代表320×480像素,这个用的比较多3.pt:point,是一个标准的长度单位,1pt...
分类:
移动开发 时间:
2014-07-18 23:15:10
阅读次数:
338
HTML 标签
标签的 border 属性" href="">border
pixels
规定表格边框的宽度。
STF
标签的 cellpadding 属性" href="">cellpadding
pixels %
规定单元边沿与其内容之间的空白。
STF
标签的 cellspacing 属性" href="">cellsp...
分类:
其他好文 时间:
2014-07-18 22:34:42
阅读次数:
373
一、基本概念dip : device independent pixels ,设备无关像素。既然是设备无关,我还是觉得device靠谱。dp :就是dippx : 像素不多说 dpi :dots per inch , 直接来说就是一英寸多少个像素点。常见取值 120,160,...
分类:
其他好文 时间:
2014-07-14 17:48:45
阅读次数:
347
dp(dip): device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。dp也就是dip,这个和sp基本类似。如果设置表示长度、高度等属性时可以使用dp 或sp。但如...
分类:
移动开发 时间:
2014-07-13 11:21:27
阅读次数:
200
学习Graphics中遇到位图(Bitmap)中getPixels()方法,对该方法的用法大体理解,但对其中的stride参数却不明白具体的用法以及用意,现记述过程如下:getPixels()方法的用处为获取位图(Bitmap)中的像素值(颜色值),存入类型为int的pixels数组中,至于从RGB...
分类:
其他好文 时间:
2014-07-12 13:52:02
阅读次数:
347
方法scrollTo: (内容的左上角)达到某个地点scrollBy: 根据当前位置,再移动多少属性:mScrollX, 以下是文档解释The offset, in pixels, by which the content of this view is scrolled horizontally....
分类:
移动开发 时间:
2014-06-26 19:52:04
阅读次数:
252