Speed up loading an image from disk in a windows forms (c#.net) app

前端 未结 6 1700
梦谈多话
梦谈多话 2021-02-15 13:21

I\'m currently working on an app that allows the user to play (automatically scroll) through a series of local images. Usually there will be five or six on screen at once.

6条回答
  •  孤城傲影
    2021-02-15 13:47

    Check out the concept of double buffering. What you want to be doing is have a second thread that can be loading the next set of images while you are displaying the first set. Once the 1/6 time gate hits, you switch the one set of images out and start loading the next set.

提交回复
热议问题