The pages linked from here have a bunch of quick-and-dirty code examples - minimal error checking, but they show what works and what doesn't
If you want to visit this page but can't be bothered to type anything in, here's a handy QR code:
Does getImageData work on the canvas, or the transformed canvas? Let's find out