diff options
author | Chih-Chung Chang <chihchung@google.com> | 2009-08-06 14:33:30 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2009-08-10 17:07:34 +0800 |
commit | 382b384ec2cd948a82fe42294b18e4ec630bbdf6 (patch) | |
tree | 7b46e9b728be5dfcef00d94f16953c3c5487b9f4 /src/com/android/camera/Camera.java | |
parent | 1d5ec3cba971ecb2d49fef0640a221a30c707e49 (diff) | |
download | LegacyCamera-382b384ec2cd948a82fe42294b18e4ec630bbdf6.zip LegacyCamera-382b384ec2cd948a82fe42294b18e4ec630bbdf6.tar.gz LegacyCamera-382b384ec2cd948a82fe42294b18e4ec630bbdf6.tar.bz2 |
Removed unused resources and code. See 2036961: build size too large.
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r-- | src/com/android/camera/Camera.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index fe6b1c7..727b7d3 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -703,27 +703,6 @@ public class Camera extends Activity implements View.OnClickListener, return DateFormat.format("yyyy-MM-dd kk.mm.ss", dateTaken).toString(); } - public static Matrix getDisplayMatrix(Bitmap b, ImageView v) { - Matrix m = new Matrix(); - float bw = b.getWidth(); - float bh = b.getHeight(); - float vw = v.getWidth(); - float vh = v.getHeight(); - float scale, x, y; - if (bw * vh > vw * bh) { - scale = vh / bh; - x = (vw - scale * bw) * 0.5F; - y = 0; - } else { - scale = vw / bw; - x = 0; - y = (vh - scale * bh) * 0.5F; - } - m.setScale(scale, scale, 0.5F, 0.5F); - m.postTranslate(x, y); - return m; - } - @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); |