Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to resize an image file ???

How to resize an image file ???

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netsysadminhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    immori
    wrote on last edited by
    #1

    Hi dears, I have an uploadFile server control (in asp.net 2.0) which is uploades users images . how can I upload selected image to server by changing its height and width to a specific size and then save it? plz help me regards,

    M B 2 Replies Last reply
    0
    • I immori

      Hi dears, I have an uploadFile server control (in asp.net 2.0) which is uploades users images . how can I upload selected image to server by changing its height and width to a specific size and then save it? plz help me regards,

      M Offline
      M Offline
      M LN Rao
      wrote on last edited by
      #2

      //save the image to the disk. //load the image. Image image = new Bitmap("myfile.bmp"); Image pThumbnail = image.GetThumbnailImage(100, 100, null, new IntPtr()); image.Save("myfile.bmp");

      I 1 Reply Last reply
      0
      • M M LN Rao

        //save the image to the disk. //load the image. Image image = new Bitmap("myfile.bmp"); Image pThumbnail = image.GetThumbnailImage(100, 100, null, new IntPtr()); image.Save("myfile.bmp");

        I Offline
        I Offline
        immori
        wrote on last edited by
        #3

        thx but an error occurred with this message : A generic error occurred in GDI+ I think the file is used by another proccess so it cant rewrite it...?!

        1 Reply Last reply
        0
        • I immori

          Hi dears, I have an uploadFile server control (in asp.net 2.0) which is uploades users images . how can I upload selected image to server by changing its height and width to a specific size and then save it? plz help me regards,

          B Offline
          B Offline
          Britney S Morales
          wrote on last edited by
          #4

          Check this post http://www.codeproject.com/aspnet/netimageupload.asp keep Learning and you never will be out of date...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups