Results 1 to 9 of 9

Thread: Attempting to resize an image with percent...

  1. #1
    SirK
    Guest

    Attempting to resize an image with percent...

    Ok, so I made a program that resizes pictures, but I cannot figure out how to make it resize using percentages. I have the width property resizing correctly, but the height property won't resize at all...

    It is setup like this:
    picture1.height = (text1.text / 100) * picture1.height
    picture1.width = (text1.text / 100) * picture1.width

    Like I said, the width resizes, but the height that is supposed to resize is only a gray area. The picturebox resizes, but it has no picture in that area and the picture is stretched horizontally. Help?

    ~SirK

  2. #2
    Lively Member
    Join Date
    Sep 2000
    Posts
    127

    Creating Thunb Nails

    Hi there can you help me...

    I need to create a thunb nail, how can i do it...

    tks
    ASPWIZARD

    http://www.aspwizard.co.uk

  3. #3
    Addicted Member
    Join Date
    Jun 2002
    Location
    Far.. far away! (Netherlands)
    Posts
    169
    Euhm, use a image box and put the stretch property to true?
    It works fine over here.

    -Shell-

  4. #4
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625

    Re: Attempting to resize an image with percent...

    Originally posted by

    It is setup like this:
    picture1.height = (text1.text / 100) * picture1.height
    picture1.width = (text1.text / 100) * picture1.width
    You are getting both the width and height from the same variable (text1.text)
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  5. #5
    Lively Member
    Join Date
    Sep 2000
    Posts
    127

    BMP to JPG

    Ok, I was abre to create my file, the FORMAT that gets created is BMP is there any class i should be aware that will convert BMP into JPG.

    Kind Regards
    ASPWIZARD

    http://www.aspwizard.co.uk

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    GDI+ in VB .NET

    VB6 there is some ActiveX control, forgot it's name.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Not activex it was a dll... by the JPEG group.. idj15.dll or something like that...

    [edit]
    Search forums for JPEG and dll
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  8. #8
    Lively Member
    Join Date
    Sep 2000
    Posts
    127

    thanks

    Thank you, but i'm actually looking for a CLASS and not a DLL not sure if that is possible.

    tks
    ASPWIZARD

    http://www.aspwizard.co.uk

  9. #9
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    yes its possible

    vbaccelerator.com did it
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width