I'm trying to develop an application that will use getImageData in javascript in Firefox 3, but I am getting a "NS_ERROR_DOM_SECURITY_ERR" on the getImageData call. The javascript and the image are both currently being served from by hard drive, which is apparently a security violation? When this is live they will both be served from the...
I'd like to know if there is a way to dynamically modify/access the data contained in html images just as if they were an html5 canvas element. With canvas, you can in javascript access the raw pixel data with getImageData() and putImageData(), but I have thus far been not able to figure out how to do this with images.
...
Excanvas.js allows IE to work with the canvas tag, but the getImageData method is not supported.
Is there any way at all to get the value of a specified pixel in IE (img or VML or whatever other ways bitmaps from a server can be displayed in IE)? I'm assuming there's not.
I'm trying to get rid of a server hit to improve responsiveness ...
I have a canvas in my webpage; I create a new Image data in this canvas then I modify some pixel through myImgData.data[] array. Now I would like to scale this image and make it bigger. I tried by scaling the context but the image remains small. Is it possible to do this?
Thanks
...
Here is the code that works perfectly well in Firefox, but I just do not get why it does not work in Webkit browsers! Note: Im using jQuery to select the canvas element.
(function()
{
flipV=function(imageData)
{
var n = new Array();
var d = imageData.data;
// loop through over row ...