There are similar questions, but the answers all use canvas. It'll be slow and I think it's unnatural.
I searched and it seemed that I can use XMLHttpRequest. But I tried all examples and failed (although I got some data,they failed to form ImageData).
function getdata(){
var xhr=new XMLHttpRequest()
xhr.responseType="blob" // or something else?
xhr.onload=function(){
temp=xhr.response
}
xhr.open("GET","favicon.ico",true)
xhr.send()
}
// what to do next?
EDIT: I shall repeat myself again : no canvas