View Single Post
Old 11-17-2012, 11:45 PM   PM User | #8
Luke7268
New Coder

 
Join Date: Nov 2012
Posts: 10
Thanks: 6
Thanked 0 Times in 0 Posts
Luke7268 is an unknown quantity at this point
No luck I'm afraid...

I also tried:

Code:
for (i=0; i<numberofpics; i++) {
	img[i] = new Image();
	img[i].onload = function() {
                var keepi = i, keepsp = sourcepointer;
 		ctxsrc.drawImage(img[keepi], keepsp, 0, widthpic[keepi], heightcanvas);
		keepsp =keepsp +widthpic[keepi];
	};
	img[i].src = imgsrc[i];
}
...but that didn't work either.
Luke7268 is offline   Reply With Quote