View Full Version : need help resizing pictures
eurovw
10-29-2003, 04:49 AM
can anyone show me an example how to resize pictures using a object component?
bruce
11-05-2003, 08:05 AM
Check out aspUpload's site. It has some example on how to use ASPUload to resize
[b]quote:Originally posted by eurovw
can anyone show me an example how to resize pictures using a object component?
</blockquote id="quote"></font id="quote">
eurovw
11-18-2003, 06:15 AM
Yes I know, but it requires ASPJpeg component, which you don't provide. Any other solutions, an example of ASPImage component?
thanks
bruce
11-18-2003, 07:01 AM
Sorry point you to the wrong place
http://www.serverobjects.com/comp/Aspimage.htm
jherr1971
05-20-2004, 10:36 AM
Just a late note:
If you download the evaluation version on their site:
http://www.serverobjects.com/products.htm#aspimage
you can then simply unzip it and they provide you with a bunch of examples you can look at.
And here's some resize example code:
dim Image, intImageWidth, intImageHeight
'change 350 to your desired sizes
intImageWidth = 350
intImageHeight = 350
Set Image = Server.CreateObject("AspImage.Image")
Image.AutoSize = true
Image.LoadImage("actual path to your picture in here")
Image.ResizeR intImageWidth, intImageHeight
Image.FileName = ("actual path to your picture in here")
Image.SaveImage
Set Image = nothing
vBulletin® ©Jelsoft Enterprises Ltd.