Thu Jul 17 10:10:07 2014 : Error executing image transfer script: Error copying localhost.localdomain:/app/opennebula/var//datastores/1/12933297f0ffeb...
分类:
其他好文 时间:
2014-07-18 20:14:18
阅读次数:
269
创建testimg.pyimport sysfrom PIL import Image img = Image.open(sys.argv[1]).convert('YCbCr') w, h = img.size data = img.getdata() cnt = 0 ...
分类:
编程语言 时间:
2014-07-18 19:19:52
阅读次数:
358
我们可以用dir()来获取一个类,一个模块,一个字符串的信息/方法例如:#可以列出Image模块的方法>>import Image>>dir(Image)#列出字符串abc的信息,字符串abc其实是类str,也就是列出了str的方法>>dir('abc')#那么应该有一个方法是__len__()>>...
分类:
编程语言 时间:
2014-07-18 19:11:38
阅读次数:
297
NSString* localPath = [[NSBundle mainBundle] pathForResource:@"1" ofType:@"jpg"];
NSURL* fileUrl = [NSURL fileURLWithPath:localPath];
CIImage* image = [CIImage imageWithContentsOfURL:fileUrl];...
分类:
移动开发 时间:
2014-07-18 16:31:23
阅读次数:
408
1. 滚动范围这个可以理解为一张很大的图片,但是UIScrollView大小有限,如果想看到整张图片,滚动范围就需要和图片一样大小。 // 设置内容的宽高 self.scroll.contentSize = image.size; // 增加滚动范围 左上height\w...
分类:
其他好文 时间:
2014-07-18 00:36:29
阅读次数:
189
我们可以用dir()来获取一个类,一个模块,一个字符串的信息/方法例如:#可以列出Image模块的方法>>import Image>>dir(Image)#列出字符串abc的信息,字符串abc其实是类str,也就是列出了str的方法>>dir('abc')#那么应该有一个方法是__len__()>>...
分类:
编程语言 时间:
2014-07-17 23:17:54
阅读次数:
357
主要介绍这三个框架,都挺有名的,其他的框架估计也差不多了Android-Universal-Image-Loaderhttps://github.com/nostra13/Android-Universal-Image-LoaderImageLoaderhttps://github.com/novo...
分类:
移动开发 时间:
2014-07-17 22:12:05
阅读次数:
387
今天使用了下ADT 16.0 在定义一个ImageVIew的时候 总是提示这个[Accessibility] Missing contentDescription attribute on image警告,虽说可以不理 但总是感觉怪怪的,在网上一搜 发现原来这是ADT 16.0的新特性,在一些没有文...
分类:
数据库 时间:
2014-07-17 21:38:55
阅读次数:
295
淡入淡出 Fade Image Out Fade Image In
分类:
Web程序 时间:
2014-07-17 10:06:52
阅读次数:
189
Image对象的存储和获取web页面中所有的<img>元素存储在一个document.p_w_picpaths[]数组中通过document.p_w_picpaths[index]document.p_w_picpaths["name"]访问注意:name是<img>标签的属性name的值图片的预装载缓解图片装载缓慢的问题。原理:预装载实在HTTP请求..
分类:
编程语言 时间:
2014-07-17 08:04:45
阅读次数:
356