1.用Date来创建一个对象的时候得到的有0123456....这些在显示的时候是不符合规范的,所以想到用''+..使其变成字符串,然后用加号将那些字符串进行连接起来。2.在获取字符串每个数字的时候可以直接用dateString[i]来遍历。3.aImg[i].src = 'images/'+dat...
分类:
其他好文 时间:
2015-08-05 20:10:33
阅读次数:
104
android显示图片1、从res文件下获取图片资源ImageView images=(ImageView) findViewById(R.id.imageview1);
InputStream is=this.getResources().openRawResource(R.drawable.test2);
BitmapFactory.Options options=new BitmapFac...
分类:
移动开发 时间:
2015-08-04 22:55:52
阅读次数:
113
简要: ??? 将图片放在仓库里面,在文件里链接它,最后 push 到 github 上。 github 图片链接格式: (http://github.com/yourname/your-repository/raw/master/images-folder/xxx.png) 其实右击查看图片链接 ...
分类:
其他好文 时间:
2015-08-04 21:14:22
阅读次数:
156
PS:大家都说看到那么多图标很头痛,我来给大家解决这个问题:
直接下载我的这个包Images.xcassets.zip,解压放到你项目中的直接替换吧,后面你只需要把iCON改成你自己的就行了。。再也不用一个一个拖了
Images.xcassets.zip (277
K) 下载次数:2420
一、Sizes of App UI Ele...
分类:
移动开发 时间:
2015-08-04 15:44:52
阅读次数:
166
Docker安装rpm-ivhepel-release-6-8.noarch.rpm先安装epel-release-6-8.noarch.rpmyum-yinstalldocker-io安装docker-io的包,如果之前有安装任何Docker的安装包全部卸除掉servicedockerstart启动docker进程chkconfig--level2345dockeron设置docker自动启动dockerpullcentos:late..
分类:
其他好文 时间:
2015-07-31 18:42:46
阅读次数:
179
Quadtrees
A quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadrants. Each quadrant may again be split ...
分类:
其他好文 时间:
2015-07-31 18:37:19
阅读次数:
137
方案一:Tomcat的defaultServlet来处理静态文件
要放在DispatcherServlet的前面, 让 defaultServlet先拦截请求,这样请求就不会进入Spring了
方案二: 在spring3.0.4以后版本提供了mvc:resource
/images/**映射到ResourceHttpRequestHandl...
分类:
编程语言 时间:
2015-07-31 10:37:06
阅读次数:
368
背景:openstackjuno版本,使用glance创建centos7镜像,然后生成虚拟机。操作步骤:首先获取镜像http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1503.qcow2wget -P /tmp/...
分类:
其他好文 时间:
2015-07-30 19:20:51
阅读次数:
339
Image imgwd = this.imageList1.Images["wd.png"]; var bytes = ImageToBytes(imgwd); public byte[] ImageToBytes(Image image) { using...
分类:
编程语言 时间:
2015-07-29 15:41:11
阅读次数:
163
#include
#include "/usr/local/ffmpeg_arm/include/SDL/SDL.h"
char *bmp_name[3] = {"000.bmp","111.bmp","222.bmp"};
int main()
{
int i=0;
//The images
SDL_Surface* hello = NULL;
SDL_Surfa...
分类:
系统相关 时间:
2015-07-28 18:50:59
阅读次数:
218