# PictureFileUtils

public class PictureFileUtils

## Properties

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

## Functions

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