You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/06/21 00:52:48 UTC
[3/5] wp7 commit: removed Debug logging, cleanup
removed Debug logging, cleanup
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/7f19f45c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/7f19f45c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/7f19f45c
Branch: refs/heads/master
Commit: 7f19f45cf1b0ed8935bc8d11f4c3e924523d923c
Parents: e4cc4c5
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Jun 20 15:42:36 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Jun 20 15:42:36 2012 -0700
----------------------------------------------------------------------
framework/Cordova/Commands/Camera.cs | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/7f19f45c/framework/Cordova/Commands/Camera.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Camera.cs b/framework/Cordova/Commands/Camera.cs
index 319744e..0a1ae9e 100644
--- a/framework/Cordova/Commands/Camera.cs
+++ b/framework/Cordova/Commands/Camera.cs
@@ -209,12 +209,9 @@ namespace WP7CordovaClassLib.Cordova.Commands
if (cameraOptions.DestinationType == FILE_URI)
{
- //WriteableBitmap image = PictureDecoder.DecodeJpeg(e.ChosenPhoto);
- //imagePathOrContent = this.SaveImageToLocalStorage(image, Path.GetFileName(e.OriginalFileName));
// Save image in media library
- MediaLibrary library = new MediaLibrary();
- Picture pict = library.SavePicture(e.OriginalFileName, e.ChosenPhoto);
- Debug.WriteLine("Picture image width = " + pict.Width.ToString());
+ // MediaLibrary library = new MediaLibrary();
+ // Picture pict = library.SavePicture(e.OriginalFileName, e.ChosenPhoto); // to save to photo-roll ...
int orient = ImageExifHelper.getImageOrientationFromStream(e.ChosenPhoto);
int newAngle = 0;
@@ -240,16 +237,8 @@ namespace WP7CordovaClassLib.Cordova.Commands
WriteableBitmap image = PictureDecoder.DecodeJpeg(rotImageStream);
- //byte[] imageBytes = new byte[rotImageStream.Length];
- //rotImageStream.Read(imageBytes, 0, imageBytes.Length);
- //rotImageStream.Dispose();
- //imageBytes = null;
-
imagePathOrContent = this.SaveImageToLocalStorage(image, Path.GetFileName(e.OriginalFileName));
-
-
-
}
else if (cameraOptions.DestinationType == DATA_URL)