07 2012 档案

摘要:/** * 从文件解析出Bitmap格式的图片 * * @param path * @param maxWidth * @param maxHeight * @return */ public static Bitmap decodeFile(String path, int maxWidth, int maxHeight){ BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBoun... 阅读全文
posted @ 2012-07-27 14:52 吴超文 阅读(423) 评论(0) 推荐(0) 编辑
摘要:系统中某些图片可能已经被修改了后缀名,所以不能只是对后缀名进行判断。下面的示例代码就是如何判断一个图片的具体类型的。public static void main(String[] args) { File f = new File("c://test.jpg"); if (f.exists()) { System.out.println(getFormatInFile(f)); } } // Returns the format of the image in the file 'f'. // Returns ... 阅读全文
posted @ 2012-07-25 13:16 吴超文 阅读(1275) 评论(0) 推荐(0) 编辑
摘要:Spring的IoC容器就是一个实现了BeanFactory接口的可实例化类。事实上,Spring提供了两种不同的容器:一种是最基本的BeanFactory,另一种是扩展的ApplicationContext。BeanFactory 仅提供了最基本的依赖注入支持,而 ApplicationContext 则扩展了BeanFactory ,提供了更多的额外功能。实例化这两种容器时是有区别的:(1)BeanFactorypublic class BeanFactoryTest { public static void main(String[] args) throws Throwable{... 阅读全文
posted @ 2012-07-24 21:31 吴超文 阅读(340) 评论(0) 推荐(0) 编辑
摘要:/** * @(#)MainActivity.java * * Copyright XXX.All rights reserved. * This software is the XXX system. * * @Version: XXX * @JDK: jdk 1.6.0.XXX * @Module: androidThumbnail */ /*- History ********************************************** * ID DATE PERSON REASON * 1 2012-7-1... 阅读全文
posted @ 2012-07-13 09:12 吴超文 阅读(824) 评论(0) 推荐(0) 编辑
摘要:学习了这本书的第2章,这是比HelloWorld更强大的例子,直接以登录来讲了Spring MVC,Spring JDBC,Spring 声明式事务等技术。 在此上传源码,方便以后查找。 下载源码 阅读全文
posted @ 2012-07-12 23:10 吴超文 阅读(119) 评论(0) 推荐(0) 编辑
摘要:Android 调用相册 拍照 实现系统控件缩放 切割图片 阅读全文
posted @ 2012-07-03 15:10 吴超文 阅读(107) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示