Retrieve Image from Sprite

Discussion in 'Questions (Windows Mobile)' started by fjsantos, Jun 16, 2008.

  1. fjsantos

    fjsantos Member Licensed User

    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
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is not possible.
    You can store the image in an ImageList before assigning it to the sprite.
     
  3. fjsantos

    fjsantos Member Licensed User

    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
  4. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  5. fjsantos

    fjsantos Member Licensed User

    Yes, but I have to use dispose method first for memory purposse?

    Best Regards, fjsantos.
    ________
    dodge wiki
     
    Last edited: Jan 24, 2011
  6. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  7. fjsantos

    fjsantos Member Licensed User

    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
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice