摘要: private static void unzip(InputStream fis, String outputDirectory) throws Exception { ZipInputStream in = new ZipInputStream(fis); ZipEntry z; String name = ""; String extractedFile = ""; int counter = 0; while ((z = in.getNextEntr... 阅读全文
posted @ 2013-09-04 09:44 疯子FK 阅读(282) 评论(0) 推荐(0) 编辑
摘要: public static Bitmap createScaledBitmap(Bitmap unscaledBitmap, int dstWidth, int dstHeight) { Rect srcRect = calculateSrcRect(unscaledBitmap.getWidth(), unscaledBitmap.getHeight(), dstWidth, dstHeight); Rect dstRect = calculateDstRect(unscaledBitmap.getWidth(), unscaledBitmap.getHe... 阅读全文
posted @ 2013-09-04 09:34 疯子FK 阅读(295) 评论(0) 推荐(0) 编辑