小编use*_*045的帖子

在Google Play商店中为自己的应用创建折扣代码

如果用户提供促销代码,谷歌游戏商店是否有可能免费下载(或有一定折扣)的非免费应用程序?

android discount

13
推荐指数
1
解决办法
6103
查看次数

使用ExifInterface设置图像方向

setRotation methodin Camera.Parameters不适用于所有设备.有人建议手动更改EXIF信息以解决问题.你能给我一个关于如何设置exif信息的简短例子,ExifInterface以这种方式将图像方向设置为肖像吗?

private int savePicture(byte[] data)
{
       File pictureFile = getOutputMediaFile();
       if (pictureFile == null)
           return FILE_CREATION_ERROR;

       try {
           FileOutputStream fos = new FileOutputStream(pictureFile);
           fos.write(data);
           fos.close();
       } catch (FileNotFoundException e) {
           return FILE_NOT_FOUND;
       } catch (IOException e) {
           return ACCESSING_FILE_ERROR;
       }

   return OKAY;
}
Run Code Online (Sandbox Code Playgroud)

我试过这个:

    try {
        ExifInterface exifi = new ExifInterface(pictureFile.getAbsolutePath());
        exifi.setAttribute(ExifInterface.TAG_ORIENTATION, String.valueOf(ExifInterface.ORIENTATION_ROTATE_90));
        exifi.saveAttributes();
    } catch (IOException e) {
        Log.e(TAG, "Exif error");
    }
Run Code Online (Sandbox Code Playgroud)

但是当我从android画廊想象出图片时没有任何改变.

android exif orientation

6
推荐指数
2
解决办法
2万
查看次数

检查图像位图是否模糊的简单方法

我正在寻找一种"非常"简单的方法来检查图像位图是否模糊.我不需要精确和复杂的算法,涉及fft,小波等.即使它不准确也只是一个非常简单的想法.

我曾考虑计算像素(x,y)和像素(x + 1,y)之间的平均欧几里德距离,考虑它们的RGB分量,然后使用阈值,但它的工作非常糟糕.还有其他想法吗?

bitmap image-processing blur

6
推荐指数
1
解决办法
8829
查看次数

标签 统计

android ×2

bitmap ×1

blur ×1

discount ×1

exif ×1

image-processing ×1

orientation ×1