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 02:06:53 UTC
[2/3] wp7 commit: code formatting ResizePhoto method name for code
consistency
code formatting ResizePhoto method name for code consistency
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/891000c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/891000c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/891000c8
Branch: refs/heads/master
Commit: 891000c8803759ed5ec9480de155b2ff756ee50a
Parents: c7a075e
Author: hermwong <he...@gmail.com>
Authored: Wed Jun 20 16:52:16 2012 -0700
Committer: hermwong <he...@gmail.com>
Committed: Wed Jun 20 16:52:16 2012 -0700
----------------------------------------------------------------------
framework/Cordova/Commands/Camera.cs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/891000c8/framework/Cordova/Commands/Camera.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Camera.cs b/framework/Cordova/Commands/Camera.cs
index ec0cc1c..6620dd4 100644
--- a/framework/Cordova/Commands/Camera.cs
+++ b/framework/Cordova/Commands/Camera.cs
@@ -323,7 +323,6 @@ namespace WP7CordovaClassLib.Cordova.Commands
}
}
-
/// <summary>
/// Returns image content in a form of base64 string
/// </summary>
@@ -344,7 +343,7 @@ namespace WP7CordovaClassLib.Cordova.Commands
else
{
// resize photo
- byte[] resizedFile = resizePhoto(stream, fileData);
+ byte[] resizedFile = ResizePhoto(stream, fileData);
stream.Close();
return Convert.ToBase64String(resizedFile);
}
@@ -356,7 +355,7 @@ namespace WP7CordovaClassLib.Cordova.Commands
/// <param name="stream">Image stream</param>
/// <param name="fileData">File data</param>
/// <returns>resized image</returns>
- private byte[] resizePhoto(Stream stream, byte[] fileData)
+ private byte[] ResizePhoto(Stream stream, byte[] fileData)
{
int streamLength = (int)stream.Length;
int intResult = 0;