-
- All Implemented Interfaces:
public class ImageUtil
-
-
Method Summary
Modifier and Type Method Description final BitmapcreateScaledBitmapFromLocalImageSource(Activity activity, InputStream inputStream, String imageUri)This method first uses a straight binary pixel conversion to shrink an image to almost the right size, and then performs a scaling of this resulting bitmap to achieve the final size. final BitmapgetImageThumbnailBitmap(String filePath)final BitmaploadAvatar(String imageUrl)-
-
Method Detail
-
createScaledBitmapFromLocalImageSource
@Synchronized() final Bitmap createScaledBitmapFromLocalImageSource(Activity activity, InputStream inputStream, String imageUri)
This method first uses a straight binary pixel conversion to shrink an image to almost the right size, and then performs a scaling of this resulting bitmap to achieve the final size. It will create two bitmaps in memory while it is running.
- Parameters:
inputStream- Stream to read original imageimageUri- Either full absolute path to the source image file or the content uri to the source image
-
getImageThumbnailBitmap
final Bitmap getImageThumbnailBitmap(String filePath)
-
loadAvatar
final Bitmap loadAvatar(String imageUrl)
-
-
-
-