IMPOSSIBLE? Compositing Images into One Image
Posted on 2005-02-25
The remote server and web browser client interface using DHTML communicate with one another well and it does work. The problem Im experiencing is the returned JPG images which can be full screen 1024x768 pics to small partial images of 5x5 pixels are being "overlayed" on top of one another to give the illusion of a changing desktop in the web browser client interface. It works but the memory it chews up is phenomenal. I've looked at Task Manager and have gotten the IEXPLORE.EXE process up to 160MB. When i dump all the images i am back down to 19MB. Ouch.
I'm looking for an overlay approach that is more efficient with received JPG images. Preferably I want the images "composited" overtop the other and then the image object dropped as i dont care much about it as the imagery has been pasted/painted on screen anyway, and so releasing the image object memory is beneficial. Perhaps an ActiveXObject/DirectX solution is out there to actually draw the images overtop one another. Basically instead of retrieving and overlaying hundreds of images one on top of the other I want to simply paint overtiop of the same canvas image retaining the same memory usage.
Is there some kind of technique out there regardless of complexity which i could use under the web browser to give me such control? The closest I've found are CSS filters but again these retain objects rather than painting overtop of one another.
Thanks for anything.