I have a C # application that has to load approximately 50 TIFF images from a network drive. The size of each of these pictures is approximately 10-15 MByte. I have to load these images, change their size, and export them in PDF file.
Currently, I am using the following method to load images from a network drive
image image = Bitmapfoff file (path.LocalPath);
The problem is that it takes a lot of time to load 50 images which is not satisfactory for my application scenario. What is the way to speed up the image loading process?
I recommend that you copy them to local drive first. I suspect that the Bitmap.FromFile
file can be searched around (reading potentially randomly) that is not suitable for network drives - while only files locally Copy and then bitmap .FromFile
does an expensive part (network transfer) once.
No comments:
Post a Comment