Last post Dec 02, 2008 01:58 AM by shrikale13
Dec 06, 2007 05:42 AM|Sheetal.Bhatt|LINK
How can i get height & width of resized image at runtime dynamically.
i need reply urgently if anyone knows,plz send code for that.
Dec 06, 2007 10:09 AM|CurtWRC|LINK
Does this help?
Dim imageurl As String = Server.MapPath("/uploads/" + filename)
Dim fullSizeImg As System.Drawing.Image = System.Drawing.Image.FromFile(imageurl)
Dim width As Integer = fullSizeImg.Width
Dim height As Integer = fullSizeImg.Height
Dec 07, 2007 12:04 AM|Sheetal.Bhatt|LINK
This code will give me actual height & width of image,that is already i've done.
I want height & width at runtime when i resize an image at runtime, and i have to save that resized image with their size after resize.
Hope u got my problem.
Plz reply urgently if anyone knows this.
Dec 02, 2008 01:58 AM|shrikale13|LINK
You can pass the Byte array of resized image in the above code
If you are dealing this with image control, then you can get img(Image control ID).width & img.height.