none
Best way to load images into array? RRS feed

  • Question

  • Would it be better to load images in to an array from a file path or would it be better to load them into the array from resource content of the project? Trying to figure out the best way to build a tile map editor.
    • Edited by old_School Monday, November 13, 2017 8:36 PM
    Monday, November 13, 2017 4:25 PM

Answers

  • Hello,

     

     I would say only load into memory what you actually need to use.

    The tile map editor project should thumbnail images and scaling

    for performance.  You can implement Back Ground Worker Threads

    for Thumbnail and scaling so the UI thread is more responsive.  As

    for project resources, they can be embed or locally stored in the

    applications install folder.  Custom Icons are small and would be a

    good example for embed. 

     

      Please provide more details about your project requirements for a

    more precise solution and suggestions.

     

     Thanks :)

    Monday, November 13, 2017 10:22 PM

All replies

  • Hello,

     

     I would say only load into memory what you actually need to use.

    The tile map editor project should thumbnail images and scaling

    for performance.  You can implement Back Ground Worker Threads

    for Thumbnail and scaling so the UI thread is more responsive.  As

    for project resources, they can be embed or locally stored in the

    applications install folder.  Custom Icons are small and would be a

    good example for embed. 

     

      Please provide more details about your project requirements for a

    more precise solution and suggestions.

     

     Thanks :)

    Monday, November 13, 2017 10:22 PM
  • Hello old_School,

    Did you have anything to update?  If you already have got the useful solution from there, you could close the thread by marking the useful reply  as answer, This can be beneficial to other community members reading this thread. Thanks a lot.

    Sincerely,
    Neil Hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Sunday, November 26, 2017 11:57 AM
    Moderator