android ExifInterface获取图片信息与赋值于图片

        //android读取图片EXIF信息
        try {
            //new ExifInterface(图片路径);
          	ExifInterface exifInterface = new ExifInterface(file.toString());
            String Orientation = exifInterface.getAttribute(ExifInterface.TAG_ORIENTATION);//方向
            String DateTime = exifInterface.getAttribute(ExifInterface.TAG_DATETIME);//时间日期
            String Make = exifInterface.getAttribute(ExifInterface.TAG_MAKE);//设备制造商
            String Model = exifInterface.getAttribute(ExifInterface.TAG_MODEL);//设备型号
            String Flash = exifInterface.getAttribute(ExifInterface.TAG_FLASH);//闪光灯
            String ImageWidth = exifInterface.getAttribute(ExifInterface.TAG_IMAGE_WIDTH);//图片宽
            String ImageLength = exifInterface.getAttribute(ExifInterface.TAG_IMAGE_LENGTH);//图片长
            String ExposureTime = exifInterface.getAttribute(ExifInterface.TAG_EXPOSURE_TIME);//曝光时间
            String FNumber = exifInterface.getAttrib

你可能感兴趣的:(Android,image,修改,android,android,studio)