Open Joncom opened 5 years ago
getImageDataHD
is actually webkitGetImageDataHD
and present on retina Apple devices.
ig.normalizeVendorAttribute
would have provided webkitGetImageDataHD
as getImageDataHD
on the ctx.
Safari used to automatically pixel double the internal resolution of the canvas on "retina" devices. I wrote an article about this whole ordeal back then.
However, this is all obsolete as far as I know. Safari it no longer does this. If you ask for a 320x240 Canvas, you now really get an internal resolution of 320x240. The backingStorePixelRatio
is always 1
. Same with all(?) other browsers. So the whole getImagePixels
function could probably be simplified.
This method doesn't actually exist. It's undefined...
https://github.com/phoboslab/Impact/blob/66e872e26a62a6f3f1f984c3fb004ec74d29784a/lib/impact/impact.js#L214
https://github.com/phoboslab/Impact/blob/66e872e26a62a6f3f1f984c3fb004ec74d29784a/lib/impact/impact.js#L224-L226