在AndroidMainfest.xml文件中添加-->
注意:在前添加-->
/**
* Save Bitmap to a file.保存图片到SD卡。
*
* @param bitmap
* @param file
* @return error message if the saving is failed. nul...
分类:
移动开发 时间:
2014-08-10 18:47:10
阅读次数:
225
自定义view
采用canvas双缓冲的方式,可以减少绘制的时间,提升性能。
StaggeredView.java
源代码如下:
package com.xxx.demo;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import andro...
分类:
移动开发 时间:
2014-08-10 18:37:30
阅读次数:
326
今天做了一个客户的硬碟,是MyBook 1130系列的3.5寸随身硬碟,因为以前大部分都是全盘镜像的,今天因为时间的关系只镜像了bitmap中有数据的部分,然后就用原外接卡接上,发现提示UNREADABLE,无法读取.因为以前就知道,这种类型的加密,后面还会有一部分匹配信息,只是这次因为是另外一个同...
分类:
其他好文 时间:
2014-08-08 15:10:36
阅读次数:
285
public static Bitmap getCircleBitmap( Bitmap sourceBitmap) { if(null == sourceBitmap) { return null; } Bitmap output = Bitmap.createB...
分类:
其他好文 时间:
2014-08-07 18:18:41
阅读次数:
224
枚举变量public static final Bitmap.Config ALPHA_8public static final Bitmap.Config ARGB_4444public static final Bitmap.Config ARGB_8888public static final...
分类:
移动开发 时间:
2014-08-06 18:13:51
阅读次数:
168
/** 保存方法 */ public void saveBitmap(Bitmap bm, String picName) { //获取SD卡的目录,不建议直接写sdcard File f = new File(Environment.getExternal...
分类:
移动开发 时间:
2014-08-06 17:58:51
阅读次数:
179
package{ import flash.display.Bitmap; import flash.display.Sprite; import flash.events.Event; import flash.external.Extern...
分类:
编程语言 时间:
2014-08-05 21:50:50
阅读次数:
295
/**
* 获取网络图片
* 注意权限:
*
*/
private Bitmap getBitmapFromNetWork(String imageUrl){
URL url=null;
Bitmap bitmap=null;
InputStream inputStream=null;
HttpURLConnection httpURLConnection=nu...
分类:
其他好文 时间:
2014-08-03 23:17:16
阅读次数:
294
定义一个布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height=...
分类:
移动开发 时间:
2014-08-03 15:25:05
阅读次数:
204
public static void saveBitmapInExternalStorage(Bitmap bitmap,Context context) {
try {
if(IsExternalStorageAvailableAndWriteable()) {
File extStorage = new File(Environment.getExternalStorageD...
分类:
其他好文 时间:
2014-08-02 20:59:34
阅读次数:
190