An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, ...
分类:
其他好文 时间:
2017-11-28 18:38:28
阅读次数:
124
树莓派 -- mysql 安装linuxmysqlYesterday is a history, tomorrow is a mystery, but today is a gift. 前序mysql 在树莓派 raspberry pi 上的安装和在 Linux 上的差不多,因为网上的教程只是记述了... ...
分类:
数据库 时间:
2017-11-28 01:43:09
阅读次数:
227
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 ...
分类:
其他好文 时间:
2017-11-26 16:00:31
阅读次数:
172
P1256 显示图像 P1256 显示图像 P1256 显示图像 题目描述 古老的显示屏是由N×M个像素(Pixel)点组成的。一个像素点的位置是根据所在行数和列数决定的。例如P(2,1)表示第2行第1列的像素点。那时候,屏幕只能显示黑与白两种颜色,人们用二进制0和1来表示。0表示黑色,1表示白色。 ...
分类:
其他好文 时间:
2017-11-26 12:39:06
阅读次数:
196
LTexture.h bool lock(); bool unlock(); GLuint* getPixelData32();//获取像素 GLuint getPixel32( GLuint x, GLuint y );//获取x,y位置对应的像素点 void setPixel32( GLuint ...
分类:
其他好文 时间:
2017-11-24 20:24:06
阅读次数:
210
1.Terrain比较占性能,普通机器测试,未开terrain 60帧,开启terrain后 30帧 2.Terrain的size大小与占用性能无关,不过越小的Terrain的烘焙上去的阴影越模糊,刚开始建议烘焙测试下 3.使用Terrain建立一条河道时,摄像机镜头拉近拉远会出现锯齿,此时调节pi ...
分类:
编程语言 时间:
2017-11-23 12:21:01
阅读次数:
301
1. apt-get install mysql-server 出现mismatch错误 下载 libmysqlclient18_5.5.57-0+deb8u1_armhf.deb 并安装 http://mirrors.ustc.edu.cn/raspbian/raspbian/pool/main/ ...
分类:
数据库 时间:
2017-11-23 08:38:15
阅读次数:
209
原文链接:https://www.zhaokeli.com/article/8031.html 给图片添加圆角, 用到的主要的(判断一个点是否在圆内)的公式在上面所说的生成圆形图片文章中。 然后扫描原图把每个个适合的像素画到一个透明的图片上去 根据想添加的圆角大小来生成一定的圆角 如图 首先根据圆角 ...
分类:
Web程序 时间:
2017-11-22 20:07:33
阅读次数:
423
总结了一下一些单位的不同 px:像素(pixel)相对长度单位,,是相对于屏幕显示器分辨率而言的; em:em的值并不是固定的,会集成父级元素的字体大小; 注意: 1.body选择其中声明Font-size=62.5%; 2.将原来的px数值除以10,然后换上em作为单位; 3.重新计算那些被放大的 ...
分类:
Web程序 时间:
2017-11-17 16:27:58
阅读次数:
179
一、Android自定义view属性 1.在res/values/styles.xml文件里面声明一个我们自定义的属性: <resources> <!--name为声明的"属性集合"名,可以随便取,但是最好是设置为跟我们的View一样的名称--> <declare-styleable name="C ...
分类:
移动开发 时间:
2017-11-16 14:06:56
阅读次数:
228