码迷,mamicode.com
首页 >  
搜索关键字:pasha and pixels    ( 276个结果
移动web
1.分辨率 1900*1200这就是一个分辨率, 因为pt的存在,因此还会有一个逻辑分辨率的概念2.ppi = pixels per inch这里inch不是平方英尺,是英尺3.dp = device pixel 物理像素4.px = pixel 逻辑像素5.pt = point 1pt = 2px...
分类:移动开发   时间:2016-01-24 23:51:34    阅读次数:189
31.Android之常用单位px、dip、sp学习
一、概述我们在页面布局的时候,经常会设置容器的长度,但是到底该使用哪个作为长度的单位而懊恼。在Android中支持的描述大小区域的类型有以下几种。px(pixels)——像素:不同的设备显示效果相同,一般我们HVGA代表320x480像素,这个用的比较多。dip(device independent...
分类:移动开发   时间:2016-01-21 18:28:25    阅读次数:157
Codeforces Round #337 (Div. 2)
水A - Pasha and Stick#include using namespace std;typedef long long ll;const int N = 1e5 + 5;const int INF = 0x3f3f3f3f;int main(void) { int n; scanf ....
分类:其他好文   时间:2016-01-18 22:32:53    阅读次数:317
(转)android屏幕适配
本文转自:http://isux.tencent.com/learn-android-from-zero-session6.html一,Android的度量单位在Android中,定义组件尺寸的单位通常有dp和sp,那么它们跟我们经常使用的px有什么区别呢?pxpx是Pixels的缩写,是常用的像素...
分类:移动开发   时间:2016-01-04 13:15:10    阅读次数:294
Leetcode: Smallest Rectangle Enclosing Black Pixels
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...
分类:其他好文   时间:2015-12-29 08:45:18    阅读次数:133
android 圆角图片的实现
图片展示的时候总觉的直角的图片不好看?好办法来了!~~public class ToRoundCorner extends Activity{ public Bitmap toRoundCorner(Bitmap bitmap, int pixels) { Bitmap outp...
分类:移动开发   时间:2015-12-25 22:30:14    阅读次数:306
Android屏幕计量单位详解
1.px(pixels)(像素):是屏幕的物理像素点,与密度相关,密度大了,单位面积上的px会比较多。通常不推荐使用这个。2.dip或dp(与密度无关的像素):一个基于density的抽象单位,这个和设备硬件有关,通常在开发中设置一些view的宽高推荐用这个,一般情况下,在不同分辨率,都不会有缩放的...
分类:移动开发   时间:2015-12-22 09:01:51    阅读次数:151
media viewport
在响应式设计或移动Web开发当中经常见到的一句代码:content属性还包括initial-scale,user-scalable等,不过这里不谈,它们的意思都很容易理解。这里要谈得是:viewport代表什么?device-width又是啥?先来理解两个概念:device pixels与CSS p...
分类:其他好文   时间:2015-12-21 00:12:59    阅读次数:237
302. Smallest Rectangle Enclosing Black Pixels
题目:An image is represented by a binary matrix with0as a white pixel and1as a black pixel. The black pixels are connected, i.e., there is only one blac...
分类:其他好文   时间:2015-12-16 09:25:18    阅读次数:956
使用glReadPixels 读取颜色缓存,深度缓存和模板缓存数据
glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);format和type取值如下/* PixelCopyType */#define G...
分类:其他好文   时间:2015-12-15 18:20:44    阅读次数:231
276条   上一页 1 ... 11 12 13 14 15 ... 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!