F fjsantos Member Licensed User Jun 16, 2008 #1 Hi all. I wonder how to retrieve an Image from sprite (if there are any possibilities to do it). Thanks in advance. Best regards, fjsantos. ________ KLX125A Last edited: Jan 24, 2011
Hi all. I wonder how to retrieve an Image from sprite (if there are any possibilities to do it). Thanks in advance. Best regards, fjsantos. ________ KLX125A
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2008 #2 It is not possible. You can store the image in an ImageList before assigning it to the sprite.
F fjsantos Member Licensed User Jun 16, 2008 #3 Ok, thanks, that it the method i suppose may use. Btw, its possible to 'update' image on Sprite or I need to create new one? Best Regards, fjsantos. ________ Yamaha YL1 Last edited: Jan 24, 2011
Ok, thanks, that it the method i suppose may use. Btw, its possible to 'update' image on Sprite or I need to create new one? Best Regards, fjsantos. ________ Yamaha YL1
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2008 #4 You will need to create a new one. It is possible however to use the same object and just reinitialize it with New2 or New3.
You will need to create a new one. It is possible however to use the same object and just reinitialize it with New2 or New3.
F fjsantos Member Licensed User Jun 16, 2008 #5 Yes, but I have to use dispose method first for memory purposse? Best Regards, fjsantos. ________ dodge wiki Last edited: Jan 24, 2011
Yes, but I have to use dispose method first for memory purposse? Best Regards, fjsantos. ________ dodge wiki
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2008 #6 You can use dispose and then AddObject (if you want to use the same object's name). If you will not call dispose the sprite will be eventually implicitly disposed.
You can use dispose and then AddObject (if you want to use the same object's name). If you will not call dispose the sprite will be eventually implicitly disposed.
F fjsantos Member Licensed User Jun 16, 2008 #7 This work then like 'garbage recollector' of java i suppose. Yesterday, doing some test i get 'out of memory' randomly when not use dispose method first. (Well i was creating a lot of sprites hehe). Best Regards, fjsantos. ________ Toyota Supra Last edited: Jan 24, 2011
This work then like 'garbage recollector' of java i suppose. Yesterday, doing some test i get 'out of memory' randomly when not use dispose method first. (Well i was creating a lot of sprites hehe). Best Regards, fjsantos. ________ Toyota Supra