You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/04/10 19:24:48 UTC

docs commit: Added destinationType.DATA_URL to Camera Examples

Updated Branches:
  refs/heads/master d227b1b1f -> 46a6fd3ff


Added destinationType.DATA_URL to Camera Examples


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/46a6fd3f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/46a6fd3f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/46a6fd3f

Branch: refs/heads/master
Commit: 46a6fd3ffc619402b5c834bd78941a4f49c3a858
Parents: d227b1b
Author: Ryan Stewart <rs...@adobe.com>
Authored: Tue Apr 10 10:10:43 2012 -0700
Committer: Ryan Stewart <rs...@adobe.com>
Committed: Tue Apr 10 10:10:43 2012 -0700

----------------------------------------------------------------------
 docs/en/edge/cordova/camera/camera.getPicture.md |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/46a6fd3f/docs/en/edge/cordova/camera/camera.getPicture.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/camera/camera.getPicture.md b/docs/en/edge/cordova/camera/camera.getPicture.md
index 6670473..a37bae0 100644
--- a/docs/en/edge/cordova/camera/camera.getPicture.md
+++ b/docs/en/edge/cordova/camera/camera.getPicture.md
@@ -143,14 +143,16 @@ Full Example
         //
         function capturePhoto() {
           // Take picture using device camera and retrieve image as base64-encoded string
-          navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50 });
+          navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
+            destinationType.DATA_URL });
         }
 
         // A button will call this function
         //
         function capturePhotoEdit() {
           // Take picture using device camera, allow edit, and retrieve image as base64-encoded string  
-          navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true }); 
+          navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true,
+            destinationType.DATA_URL });
         }
     
         // A button will call this function