|
|
@@ -80,7 +80,7 @@ public class PhotoActivity extends AppCompatActivity { |
|
|
Pair<Integer, Integer> targetedSize = this.getTargetSize(); |
|
|
Pair<Integer, Integer> targetedSize = this.getTargetSize(); |
|
|
int targetWidth = targetedSize.first; |
|
|
int targetWidth = targetedSize.first; |
|
|
int maxHeight = targetedSize.second; |
|
|
int maxHeight = targetedSize.second; |
|
|
originBitmap = BitmapUtils.loadFromPath(this, imageUri, targetWidth, maxHeight); |
|
|
|
|
|
|
|
|
originBitmap = BitmapUtils.loadFromPath(this, imageUri, targetWidth, maxHeight).copy(Bitmap.Config.ARGB_8888, true); |
|
|
// Determine how much to scale down the image. |
|
|
// Determine how much to scale down the image. |
|
|
Log.i(TAG, "resized image size width:" + originBitmap.getWidth() + ",height: " + originBitmap.getHeight()); |
|
|
Log.i(TAG, "resized image size width:" + originBitmap.getWidth() + ",height: " + originBitmap.getHeight()); |
|
|
if (originBitmap != null) { |
|
|
if (originBitmap != null) { |
|
|
|