1,仅加载图片,图像数据不会缓存。NSString *path = [[NSBundle mainBundle] pathForResource:@”icon” ofType:@”png”]; UIImage *image = [UIImage imageWithContentsOfFile:pa....
分类:
其他好文 时间:
2014-06-28 11:43:47
阅读次数:
177
In May 2011, I read a request for installation Openvswitch on Qemu image. I started to play with Openvswitch and finally became fan of this project. I...
分类:
其他好文 时间:
2014-06-24 10:31:56
阅读次数:
259
In a previous tutorial we showed how to install Openvswitch on Qemu image with Microcore Linux. At the end of tutorial we created Openvswitch extensio...
分类:
其他好文 时间:
2014-06-24 10:15:40
阅读次数:
610
打开系统相册获取图片并截取,代码相对简单 1 Intent intent = new Intent(Intent.ACTION_GET_CONTENT,null); 2 intent.setType("image/*"); 3 intent.putExtra("cro...
分类:
移动开发 时间:
2014-06-24 09:45:53
阅读次数:
360
//类方法 图片 转换为二进制+(NSData *)Image_TransForm_Data:(UIImage *)image{ NSData *imageData = UIImageJPEGRepresentation(image , 0.5); //几乎是按0.5图片大小就降到原来...
分类:
移动开发 时间:
2014-06-24 08:58:06
阅读次数:
334
显示位图,你应该使用GDI+里面的Bitmap类或者Image类,这两个类都提供了方法从硬盘上的一个文件打开文件,创建相应的内存中的位图对象的工作。然后你可以使用Graphics类的DrawImage方法来绘制该位图。下面的代码初始化GDI+,显示一个打开文件对话框并且创建Bitmap对象,显示位图...
开源项目Universal Image Loader for Android 说明文档 (1) 简介...
分类:
移动开发 时间:
2014-06-22 21:13:03
阅读次数:
289
文章主要提供android系统上拍照图片截取和图片 选择截取 两种方式,适用于app头像选择等环境。
拍照截取
打开相机
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent,“自定义”);
...
分类:
移动开发 时间:
2014-06-22 15:50:31
阅读次数:
251
(image from Anatomy of an open source cloud) A cloud data center consists of large numbers of physical servers, each running a hypervisor with one or ...
分类:
其他好文 时间:
2014-06-21 14:48:04
阅读次数:
225
In May 2011, I read a request for installation Openvswitch on Qemu image. I started to play with Openvswitch and finally became fan of this project. I...
分类:
其他好文 时间:
2014-06-21 14:42:43
阅读次数:
400