Back to project page AndroidImageCache.
The source code is released under:
Przemys?aw Jakubczyk Polidea Sp. z o.o. Copyright (c) 2012 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
If you think the Android project AndroidImageCache listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.polidea.webimageview.processor; //from w ww . j a v a 2s . c om import android.graphics.Bitmap; import android.graphics.BitmapFactory; import java.io.File; import pl.polidea.webimageview.BitmapDecodeException; /** * @author Mateusz Grzechoci?ski <mateusz.grzechocinski@gmail.com> */ public interface BitmapProcessor { BitmapProcessor DEFAULT = new BitmapProcessor() { @Override public Bitmap process(File pathToBitmap) throws BitmapDecodeException { try { return BitmapFactory.decodeFile(pathToBitmap.getPath()); } catch (final OutOfMemoryError e) { return null; } } }; Bitmap process(File pathToBitmap) throws BitmapDecodeException; }