Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF52C9E27 for ; Tue, 10 Apr 2012 17:24:48 +0000 (UTC) Received: (qmail 99724 invoked by uid 500); 10 Apr 2012 17:24:48 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 99707 invoked by uid 500); 10 Apr 2012 17:24:48 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 99700 invoked by uid 99); 10 Apr 2012 17:24:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 17:24:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7CA35C1AE; Tue, 10 Apr 2012 17:24:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: docs commit: Added destinationType.DATA_URL to Camera Examples Message-Id: <20120410172448.7CA35C1AE@tyr.zones.apache.org> Date: Tue, 10 Apr 2012 17:24:48 +0000 (UTC) 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 Authored: Tue Apr 10 10:10:43 2012 -0700 Committer: Ryan Stewart 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