Created
January 4, 2010 21:49
-
-
Save jviereck/268898 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
translateRegion: function(x, y, w, h, newX, newY) { | |
var context = this.get('canvasContext2D'); | |
data = context.getImageData(x, y, w, h); | |
context.putImageData(data, newX, newY); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment