Package 

Object ImageUtil

  • All Implemented Interfaces:

    
    public class ImageUtil
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ImageUtil INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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 image
        imageUri - Either full absolute path to the source image file or the content uri to the source image