3 ms·
Could your draw the screen, then save that as a screenshot, and analyse the image?
by megablast 12y ago
Could your draw the screen, then save that as a screenshot, and analyse the image?
- andybak 12y agoJust what I was thinking. Can't you render the DOM to a canvas and then access the pixels in that?
- LaurentVB 12y agoApparently not: https://developer.mozilla.org/en-US/docs/Web/HTML/Canvas/Drawing_DOM_objects_into_a_canvas#Security https://developer.mozilla.org/en-US/docs/Web/HTML/Canvas/Dra... > Visited-link styles aren't applied to links rendered in SVG images, so history information can't be retrieved, and native themes aren't rendered in SVG images, which makes it harder to determine the user's platform.
- Cthulhu_ 12y agoThey thought of everything, :)