c# - Image loading slow in WPF -


i creating slide-show application in wpf. storing image list of strings, , creating new bitmapimage host image when requesed. caused images take longer load up, not ideal. ideal scenario application startip slower change images quickly, rather vise-versa, instead decided load of images application @ start (ie creating list of bitmap images) , cycle through these. imrpvoed matters, there still 1 slight issue.

in image set using test there 1 large image, , on first run takes 1 or 2 seconds load. subsequently however, image loads instantly. image stored bitmapimage in code persitantly, can onyl assume wpf kind of graphics caching when loads image, means same image load quicker if displayed again.

can verfiy that, , if so, there simple way programatically make wpf perform caching on of images?

many in advance,

rob


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -