Lack of memory resizing pictures

Cris

Registered User.
Local time
Yesterday, 20:47
Joined
Jun 10, 2009
Messages
35
I've been using this code from lebans website http://www.lebans.com/imageclass.htm. to resize picture. I needed this because i was linking pictures to my database by saving the path in the database and the pictures on a folder. Besides I was having problems with memory when showing pictures on my reports. so, this helped me to have pictures that i could show without problems on my records.

However, I have a new problems with memory.The code uses a lot of memory to do the process of resizing because it loads the picture on a ImageControl, then it copy it to an array and then it creates a Metafile.

I need to reduce the use of memory because i have not enough on my users pc's. I have been trying to load directly the picture to the array by that doesn't work.

If someone else have used this code, do you have an idea of how can improve this code?? Or have you ever found another solution to avoid memory lack problems??

Thanks
 

Users who are viewing this thread

Back
Top Bottom