PDA

View Full Version : ASPImage Code Snippet?


bruce
09-26-2003, 05:13 AM
I don't have the exact code snippet but you should be able to use the resize or resizeR method.


This is what ServerObjects put on their site

Sub ResizeX (intXSize)
Dim intYSize
intYSize = (intXSize / Image.MaxX) * Image.MaxY
Image.ResizeR intXSize, intYSize
end sub


For more information, please review http://www.serverobjects.com/comp/Aspimage.htm
[b]quote:Originally posted by johnnyslotcar

I am interested in using ASPImage but am not having too much luck. I'm sure I'm doing something 'dumb'. The feature I'm interested in is the resize. I am running webwiz forums which supports image uploading into messages. What I'd like to do is have ASPImage resize the image to 390px wide (while retaining the correct aspect ratio of the image) during the image upload process. I can handle the integration of the code into my forums, but need help with the ASPImage syntax.

Can anyone supply me with a sample snippet or two on how to accomplish this? I've gone to the ServerObjects website, which didn't help me too much.

johnny
</blockquote id="quote"></font id="quote">

johnnyslotcar
09-26-2003, 11:25 AM
I am interested in using ASPImage but am not having too much luck. I'm sure I'm doing something 'dumb'. The feature I'm interested in is the resize. I am running webwiz forums which supports image uploading into messages. What I'd like to do is have ASPImage resize the image to 390px wide (while retaining the correct aspect ratio of the image) during the image upload process. I can handle the integration of the code into my forums, but need help with the ASPImage syntax.

Can anyone supply me with a sample snippet or two on how to accomplish this? I've gone to the ServerObjects website, which didn't help me too much.

johnny

johnnyslotcar
09-27-2003, 09:11 AM
Bruce, thanks - I sent them email as well - nothing back yet. I should of been more specific, [:)]but I was on a mad question posting run... ;-)

I am trying to get the syntax for specifying width and keeping aspect ration intact - does that make sense?

Thanks for the reply!

bruce
09-29-2003, 10:37 AM
That's exactly what the previous function does.

i don't think aspimage has a builtin function to resize w/ aspect ratio preservation. That mean, you have to calculate the width and height.

You should be able to find a faq in this page http://www.serverobjects.com/comp/Aspimage.htm

Search for "How do I resize and maintain the aspect ratio?"

[b]quote:Originally posted by johnnyslotcar

Bruce, thanks - I sent them email as well - nothing back yet. I should of been more specific, [:)]but I was on a mad question posting run... ;-)

I am trying to get the syntax for specifying width and keeping aspect ration intact - does that make sense?

Thanks for the reply!
</blockquote id="quote"></font id="quote">