Closed Walt7 closed 11 years ago
pls can you add this two line in your code at jCanvas v13.08.26 line 3460:
// Loop through pixels with the "each" callback function if (params.each) { for (i = 0; i < len; i += 4) { px.r = data[i]; px.g = data[i + 1]; px.b = data[i + 2]; px.a = data[i + 3]; px.Y= Math.floor(i/4/params.width); /* this */ px.X= (i/4) % params.width; /* this */ params.each.call(canvas, px); data[i] = px.r; data[i + 1] = px.g; data[i + 2] = px.b; data[i + 3] = px.a; } }
X and Y are necessary for my rendering
Tks
W:-}
Thanks for the suggestion. I'll have this added in the next release.
-Caleb
pls can you add this two line in your code at jCanvas v13.08.26 line 3460:
X and Y are necessary for my rendering
Tks
W:-}