How can we resize pictures from big one to the small one? From 1024*768 to 800*600
Thank you,
Printable View
How can we resize pictures from big one to the small one? From 1024*768 to 800*600
Thank you,
One of multiple ways , is this :
VB Code:
Dim img As Image = Image.FromFile("c:\test.jpg") Dim newimg As New Bitmap(img, 800, 600)
You can check the different constructor overloads of Bitmap obj for other ways .
whoa didn't know it was that easy. thanks.
Yo P
Is that the same for asp.net ????
one of the things im working on soon will be involving uploading an image to the server then resizing it
Thanks bud
Carl
If I'm not wrong , Image or Bitmap accept stream obj instead of specifying path file , plus width and height of the image . It should be dead easy job .
nice one thats what i like to hear