9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2026-05-02 00:07:24 +08:00

Use the density to display the picture like in the webview and update the plugin version.

This commit is contained in:
Christophe BOUCAUT
2015-06-26 17:56:29 +02:00
parent 4590d51f94
commit 08773e2c24
2 changed files with 3 additions and 3 deletions
@@ -42,8 +42,8 @@ public class BitmapUtils {
Options options = BitmapUtils.determineOriginalSizePicture(data);
int widthResize = 0;
int heightResize = 0;
int widthBackground = options.outWidth;
int heightBackground= options.outHeight;
int widthBackground = (int) (options.outWidth * displayMetrics.density);
int heightBackground= (int) (options.outHeight * displayMetrics.density);
float ratioX = (float) widthBackground / (float) displayWidthPx;
float ratioY = (float) heightBackground / (float) displayHeightPx;
int inSampleSize = 1;