2015-11-11, 05:26 PM
If I display images in an icon list an unexpected large amount of memory is being consumed.
For example, I created a test plugin which shows the same image in 100 items, each one loaded by a separate System.Drawing.Image.FromFile(). The image is a jpeg only 224 KB big, but NPVR consumes over 500 MB of memory displaying them in a list. Any ideas what is causing this? Does scaling the image for display consume a lot of memory?
I can, of course, use IGetImageCallback but reloading the images each time causes delayed scrolling/paging.
For example, I created a test plugin which shows the same image in 100 items, each one loaded by a separate System.Drawing.Image.FromFile(). The image is a jpeg only 224 KB big, but NPVR consumes over 500 MB of memory displaying them in a list. Any ideas what is causing this? Does scaling the image for display consume a lot of memory?
I can, of course, use IGetImageCallback but reloading the images each time causes delayed scrolling/paging.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget