Erstellung von Bild aus Array in javascript und Html5

Hier ist mein code. Ich erstellte Bilddaten 2D-array in javascript. Nachdem ich alle Pixel in diesem array möchte ich image erstellen und diese Werte in das Bild.

    var imageData = new Array(width);

    var image = new Image;

for (var i = 0; i < width; i++) {
    imageData[i] = new Array(height);
}

    image.src = imageData; //Here is the problem. I want to do that. 
InformationsquelleAutor user3470518 | 2014-04-02
Schreibe einen Kommentar