PictureFileUtils

public class PictureFileUtils

Properties

Link copied to clipboard
public final static String POST_AUDIO
Link copied to clipboard
public final static String POST_VIDEO
Link copied to clipboard
public final static String POSTFIX

Functions

Link copied to clipboard
public static File createCameraFile(Context context, int type, String fileName, String format)
Link copied to clipboard
public static String createDir(Context context, String filename)
创建文件夹
Link copied to clipboard
public static void deleteAllCacheDirFile(Context context)
set empty PictureSelector Cache
Link copied to clipboard
public static void deleteCacheDirFile(Context mContext, int type)
set empty PictureSelector Cache
Link copied to clipboard
public static String extSuffix(InputStream input)
获取图片后缀
Link copied to clipboard
public static String getDataColumn(Context context, Uri uri, String selection, Array<String> selectionArgs)
Get the value of the data column for this Uri.
Link copied to clipboard
public static String getDCIMCameraPath(Context ctx, String mimeType)
Link copied to clipboard
public static String getDiskCacheDir(Context ctx)
Link copied to clipboard
public static long getMediaSize(Context context, String path)
Link copied to clipboard
public static String getPath(Context context, Uri uri)
Get a file path from a Uri.
Link copied to clipboard
public static boolean isDownloadsDocument(Uri uri)
Link copied to clipboard
public static boolean isExternalStorageDocument(Uri uri)
Link copied to clipboard
public static boolean isGooglePhotosUri(Uri uri)
Link copied to clipboard
public static boolean isMediaDocument(Uri uri)
Link copied to clipboard
public static Uri parUri(Context context, File cameraFile)
生成uri
Link copied to clipboard
public static int readPictureDegree(Context context, String path)
读取图片属性:旋转的角度
Link copied to clipboard
public static void rotateImage(int degree, String path)
判断拍照 图片是否旋转
Link copied to clipboard
public static String rotateImageToAndroidQ(Context context, int degree, String path, String newFileName)
判断拍照 图片是否旋转
Link copied to clipboard
public static Bitmap rotatingImageView(int angle, Bitmap bitmap)
旋转Bitmap
Link copied to clipboard
public static void saveBitmapFile(Bitmap bitmap, File file)