类 ImageUtil


  • public class ImageUtil
    extends Object
    • 字段详细资料

      • THUMBNAIL_SIZE

        public static final int THUMBNAIL_SIZE
        另请参阅:
        常量字段值
      • SCREENSHOT_SIZE

        public static final int SCREENSHOT_SIZE
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ImageUtil

        public ImageUtil()
    • 方法详细资料

      • getThumbnail

        public static android.graphics.Bitmap getThumbnail​(android.content.Context context,
                                                           android.net.Uri uri)
                                                    throws IOException
        抛出:
        IOException
      • getScreenshot

        public static android.graphics.Bitmap getScreenshot​(android.content.Context context,
                                                            android.net.Uri uri)
                                                     throws IOException
        抛出:
        IOException
      • getScaledImage

        public static android.graphics.Bitmap getScaledImage​(android.content.Context context,
                                                             android.net.Uri uri,
                                                             int maxSize)
                                                      throws IOException
        抛出:
        IOException