My application needs to fill a 1600x1600 canvas of with 20x20 pixel images, many of which are copies of the same image.
I'm presently using:
sectorImg = new Img(...);
sectorImg.setParentElement(parentCanvas);
sectorImg.draw();
but the page either runs out of memory or takes too many minutes to load.
What is the recommended way to fill a square in a window with images like this?
Also, when I need to change an image at a location, I am calling
sectorImg.destroy()
on the old image. Is that the recommended way to do that? Do I need to call removeFromParent() before calling destroy()?
Thanks!
Ken
I'm presently using:
sectorImg = new Img(...);
sectorImg.setParentElement(parentCanvas);
sectorImg.draw();
but the page either runs out of memory or takes too many minutes to load.
What is the recommended way to fill a square in a window with images like this?
Also, when I need to change an image at a location, I am calling
sectorImg.destroy()
on the old image. Is that the recommended way to do that? Do I need to call removeFromParent() before calling destroy()?
Thanks!
Ken
Comment