摘要: 1 public class StringUtils 2 { 3 /** 4 * 判断给定字符串是否空白串。<br> 5 * 空白串是指由空格、制表符、回车符、换行符组成的字符串<br> 6 * 若输入字符串为null或空字符串,返回true 7 * @param input 8 * @return boolean 9 */10 public static boolean isBlank( String input ) 11 {12 if ( input == null || "".equals( i... 阅读全文
posted @ 2012-02-23 17:02 灰太狼_lilongmin 阅读(2441) 评论(0) 推荐(0) 编辑
摘要: 1 public void transImage(String fromFile, String toFile, int width, int height, int quality) 2 3 { 4 5 try 6 7 { 8 9 Bitmap bitmap = BitmapFactory.decodeFile(fromFile);10 11 int bitmapWidth = bitmap.getWidth();12 13 int bitmapHeight = bitm... 阅读全文
posted @ 2012-02-23 10:16 灰太狼_lilongmin 阅读(934) 评论(0) 推荐(0) 编辑