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
1,如果需要绘制图形,可以采用直接继承View类的方法完成。
2,使用Bitmap可以完成图片的缩小,放大,剪切等操作。
3,Matrix提供了一个图形的变形操作,可以使用其完成图像的平移,旋转等。
4,Animation动画效果可以通过程序编码实现,也可以通过配置文件实现,但为了维护方便,建议使用配置文件完成。
5,MediaPlayer播放视频时需要Su...
分类:
其他好文 时间:
2014-08-02 15:32:43
阅读次数:
179
加载大图片 Options options=new Options(); options.inJustDecodeBounds=true;//不加载图片,只加载文件信息 //加载图片,获取到配置信息 BitmapFactory.decodeFile(Environment.getExternalSt...
分类:
移动开发 时间:
2014-08-02 15:25:33
阅读次数:
214
先上效果图:
Layout文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
and...
分类:
移动开发 时间:
2014-08-01 23:18:22
阅读次数:
489