home / software / tips and tricks / How to resize an image usig c#?

How to resize an image usig c#?

Updated:  07/24/2012 11:07 AM
Author:  Shiju Mathews

Status:    Resolved.


In many situations we need to limit the size of the image that user is uploading for server stability and disc usage control. To limit the size stored in file first upload the image to the server. Then resize the image to a predetermined size if it exceeds the width or height limitation and save the new image to the server and delete the original image.
Here we are trying to save the user photo, that is uploaded by the user.



Chek out the function ResizeImage



Code for deleting the image

Tags: How to resize an image usig c#?
Updated on: October 2024