Created
May 12, 2012 14:44
-
-
Save onishiweb/2666919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shoot: function shoot() { | |
//console.log("testing 1"); | |
var video = document.getElementById('viewfinder'); | |
var w = video.videoWidth; | |
var h = video.videoHeight; | |
var canvas = document.getElementById('capture'); | |
canvas.width = w; | |
canvas.height = h; | |
var ctx = canvas.getContext('2d'); | |
ctx.drawImage(video, 0, 0, w, h); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment