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

前端 未结 6 1703
梦谈多话
梦谈多话 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-15 13:49

    i would probably create a background thread to continously fetch all the images from disk (keeps the ui responsive) and then publish each newly loaded image via an event

提交回复
热议问题