2013年9月7日
摘要: private ImageView iv_user_photo; private String fileName = ""; private File tempFile; private int crop = 300;// 裁剪大小 private static final int OPEN_CAMERA_CODE = 10; private static final int OPEN_GALLERY_CODE = 11; private static final int CROP_PHOTO_CODE = 12; private OnClic... 阅读全文
posted @ 2013-09-07 16:41 雪鸿·未央 阅读(3310) 评论(1) 推荐(0) 编辑
摘要: //判断SD卡是否存在 if(android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) { String path = Environment.getExternalStorageDirectory() + File.separator + "JanuBookingOnline" + File.separator; File file = new File(path); if... 阅读全文
posted @ 2013-09-07 16:32 雪鸿·未央 阅读(1920) 评论(0) 推荐(0) 编辑
摘要: /** * 转换图片成圆形 * @param bitmap 传入Bitmap对象 * @return */ public static Bitmap toRoundBitmap(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); float roundPx; float left,top,right,bottom,dst_left,dst_top,dst_right,dst_bottom; ... 阅读全文
posted @ 2013-09-07 16:00 雪鸿·未央 阅读(2047) 评论(0) 推荐(0) 编辑