An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one bla ...
分类:
其他好文 时间:
2016-03-31 12:42:37
阅读次数:
101
采样depth target,做ao blit depth target is needed or there will be 8x8 pixel blocks flip blit tex 是cs实现的一次copy from rendertarget to texture then we can s ...
分类:
其他好文 时间:
2016-03-29 21:05:24
阅读次数:
148
1. 在一个类初始化时,即在构造函数当中我们是得不到View的实际大小的。感兴趣的朋友可以试一下,getWidth()和getMeasuredWidth()得到的结果都是0.但是我们可以从onDraw()方法里面的到控件的大小。 2.这两个所得到的结果的单位是像素即pixel。 getWidth()
分类:
移动开发 时间:
2016-03-21 12:03:06
阅读次数:
179
px像素(Pixel)。相对长度单位。像素px是相对于显示器屏幕分辨率而言的。 PX特点 em是相对长度单位。相对于当前对象内文本的字体尺寸。如当前对行内文本的字体尺寸未被人为设置,则相对于浏览器的默认字体尺寸。 EM特点 注意:任 意浏览器的默认字体高都是16px。所有未经调整的浏览器都符合: 1
分类:
其他好文 时间:
2016-03-15 10:49:05
阅读次数:
357
@media (device-height:480px) and (-webkit-min-device-pixel-ratio:2) {/* 兼容iphone4/4s */} @media (device-height:568px) and (-webkit-min-device-pixel-ra
分类:
Web程序 时间:
2016-03-07 18:42:46
阅读次数:
162
reason: '*** -[AVAssetWriterInputPixelBufferAdaptor initWithAssetWriterInput:sourcePixelBufferAttributes:] Cannot create a new pixel buffer adaptor wi
分类:
其他好文 时间:
2016-03-04 16:08:19
阅读次数:
121
:root { font-size: 16px; } @media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-device-pixel-ratio: 2) { :root
分类:
移动开发 时间:
2016-03-03 12:55:54
阅读次数:
160
The interpolate function is used to get intensity of a point which is not on exactly a pixel. The code is written in C++. Because it is template funct
分类:
其他好文 时间:
2016-02-26 18:53:59
阅读次数:
179
今儿,我就准备向大伙儿介绍一些你们之前可能很少见过CSS家伙们。他们每个都是度量的单位,类似pixel 和 em 这样的,但是很有可能你之前从来就没听过这些家伙们! rem 我们首先介绍下和我们熟悉的很相似的货。em 被定义为相对于当前对象内文本的字体大小。炒个栗子,如果你给body小哥设置了fon
分类:
Web程序 时间:
2016-02-23 18:37:09
阅读次数:
161
.css { background-image: url(img@1x.png); } @media only screen and(-webkit-min-device-pixel-ratio: 2) { .css { background-image: url(img@2x.png); } }
分类:
移动开发 时间:
2016-02-16 10:02:40
阅读次数:
289