Click to See Complete Forum and Search --> : read image pixels from browser?


zaro
May 13th, 2003, 07:14 AM
Has anyone idea whether it is possible to read the color values of the pixels in an image loaded in the browser?
Or whether there is a standart ActiveX component that goes with Windows that could help Internet Explorer to do this?
Or may be some other browser could do this...

Satishpp
May 13th, 2003, 12:34 PM
From the browser - not possible

standard ActiveX component - none that I know of

Perhaps if you give more details of the problem you are facing, there might be some other solution.

Satish

zaro
May 13th, 2003, 01:33 PM
I will try to explain my idea in more detail - it is quite funny actually :)

You know PNG have a good compression level. I could easily encode some text into a PNG image. So if the PNG is 10K then the text inside will be MORE, than uncompressed. If I could decode the info back from the image then I could evaluate it in JavaScript. The browser will take care of the PNG decoding to row image data and I will decode it into text.

I could write an ActiveX component that do this, but I want a standart one. I tried DirectAnimation Media, also SVG component, but they only could write things and not read a single pixel!
May be there is other way...?