Results 1 to 6 of 6

Thread: Resizing pictures

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221

    Resizing pictures

    How can we resize pictures from big one to the small one? From 1024*768 to 800*600

    Thank you,
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    One of multiple ways , is this :
    VB Code:
    1. Dim img As Image = Image.FromFile("c:\test.jpg")        
    2. Dim newimg As New Bitmap(img, 800, 600)

    You can check the different constructor overloads of Bitmap obj for other ways .

  3. #3
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210
    whoa didn't know it was that easy. thanks.
    [vbcode]
    Me.Hide()
    [/vbcode]

  4. #4
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    Yo P

    Is that the same for asp.net ????

    one of the things im working on soon will be involving uploading an image to the server then resizing it

    Thanks bud

    Carl
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    If I'm not wrong , Image or Bitmap accept stream obj instead of specifying path file , plus width and height of the image . It should be dead easy job .

  6. #6
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    nice one thats what i like to hear
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

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