This Function Can help you! :-D
Public Function ResizePicture(ByVal sourceImage As Bitmap, ByVal newSize As Size) As Bitmap
Dim Result\_image As New Bitmap(sourceImage, newSize.Width, newSize.Height)
Dim Gr As Graphics
Gr = Graphics.FromImage(Result\_image)
Gr.DrawImage(Result\_image, 0, 0, newSize.Width, newSize.Height)
Gr.Save()
Return Result\_image
End Function
Then you can save the output of this Function By using ResizePicture(MyBitmap, New Size(100, 100)).Save(MapPath("/") & "/Images/MyImage.png", Imaging.ImageFormat.Png) Note: These codes are in VB.NET Language, but you can simply convert it to C# or any .NET language
Regards. Mehdi Ghiasi