blob: 552591c6d700976d9844d749cb1e51478cb421dd [file] [log] [blame]
function drawCanvas(imageId, canvasId, canvasWidth, canvasHeight) {
var image = document.getElementById(imageId);
var canvas = document.getElementById(canvasId);
canvas.width = canvasWidth;
canvas.height = canvasHeight;
var context = canvas.getContext('2d');
context.drawImage(image, 0, 0, canvasWidth, canvasHeight);
}