c# - memory management in image display -
i have image
object in wpf application. source changed/set combobox has several options. change option in combobox, source changes , see different images.
right now, making list of bitmapimages , select images changing index in list. dont know memory management, think when make list<bitmapimage>
object, images remain in memory, @ time use 1 image. have unnecessary data in memory.
my images 300x300 pixels , size might increase in future applications (1000x1000 pixels). now, application light enough, want use efficient method display images.
i want know if idea make list of images. files located when make list
object? better create images, save them in temporary location on hard disk , attach source these temp files.
i hope clear.
right size of files in memory not problem (or developing on mobile?). can persist images , load them if needed.
maybe can create buffer and/or queue data improve application.
Comments
Post a Comment