I have an upload image function. But i want it to resize the image if it's too big. Any ideas?
Last edited by Spanjis; Feb 28th, 2006 at 07:39 AM.
Use Graphics.DrawImage() to draw it onto a smaller bitmap object and then just re-save it overwriting the original. This will be quite primitive resizing and will not be as good as say using a script in Photoshop.
I don't live here any more.
Can I use it to change the image dimensions?
check out my codebank sample for high-quality image resizing http://www.vbforums.com/showthread.php?t=383136
AntRush - Real-Time Strategy game, based around ants! VBForums QuickPaste - Paste Coloured code blocks and custom smilies! Multi-Clipboard - Give windows 10 clipboards! EasyINI - INIFile class to rapidly implement .ini files in your apps Process Restarter (quickfix for server admins / how to autorestart a process) Mini-Tutorial: VB6 -> VB.NET introduction
Forum Rules