Hi everyone,
I have an application in which I get an Image from a server.
This Image arrives in the form of an Array, which I then use to create the Image itself.
The idea is to use this Image as a background (it may be a picture, or whatever)...
Till now I've been using this Image to create a Sprite, which is then appended onto the LayerManager so as to becom a background...
Now I'd like to know if there are other possibilities ? To begin with : is it necessary to create a Sprite out of this Image ?
Is there a better (less resource-demanding way) of sending an Image from my (perl) server ?
Right now I first have to create an array to store the received data, then I need to create an Image out of it an then create a Sprite... all this is actually pretty memory-demanding... Also for garbage collection, when is the best moment to call it ? after creating the image from the array ? or after creating the sprite ? and if I set the array to null is it possible to reuse it after receiving a new data-array ?
Thanks in advance for any tips, hints and reactions![]()

Reply With Quote



