ASPImage Code Snippet?

Discussion in 'Classic ASP' started by Bruce, Sep 26, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

    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
    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">
     
  2. 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
     
  3. 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!
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    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?"

    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">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page